I have done several unsuccessful trials at controlling iTunes on my second Mac via AppleScript. Although I had switched on "Remote Apple Events" in the Sharing preference pane, I always got something like "Can't authenticate user." The solution was to switch on "Allow events from Mac OS 9" (which becomes a selectable option when you check the Remote Apple Events checkbox) as well, and provide a password when prompted. After doing that, then this will work fine:
tell application "iTunes" of machine "eppc://cube.local"
playpause
end tell
It seems that you may switch off Mac OS 9 support afterwards, because only the password is essential.
•
[10,398 views]

