AppleScript updates/fixes