updated applescript