mem OSX script