I am getting following error for the script below. Please help
error "System Events got an error: Can’t get menu bar item \"File\" of process \"iTunes\"." number -1728 from menu bar item "File" of process "iTunes"
Script I wrote
tell application "iTunes"
activate
tell application "System Events"
tell process "iTunes"
click menu item "Sync \"iPhone\"" of menu item "Devices" of menu bar item "File"
end tell
end tell
end tell