Change to Using AppleScript