Fixing typo in AppleScript