Added AppleScript support