OSX mem script