Pass args to the AppleScript instead of relying on env. variables.