I have an Applescript to quit my local iTunes, access a remote computer and open iTunes there:
tell application "iTunes" to quit set remMachine to "eppc://email@example.com" tell application "iTunes" of machine remMachine to activate
The following error is returned:
error "iTunes got an error: Application isn’t running." number -600
Yeah, tell me about it. You tell an application to 'open' and it fails because it isn't open.
How can I open an application on a remote machine?
Edit: I have tried changing the script to:
tell application "iTunes" to quit
set remMachine to "eppc://firstname.lastname@example.org"
tell application "Finder" of machine remMachine to do shell script "open /Applications/iTunes.app"
but the returned error is now:
error "Finder got an error: Handler does not allow remote events." number -10016
This is actually incorrect as remote events are enabled in System Preferences.