add AppleScript support