you cannot launch an application on a remote machine directly,
use the Finder to check the status and launch iTunes.
Although process is not listed in the dictionary, the Finder responds to it.
tell application "Finder" of machine "eppc://Carl-Mac-2.local:xx@192.168.1.xx"
using terms from application "Finder"
if "iTunes" is not in (get name of every process) then
open application file id "com.apple.iTunes"
repeat until "iTunes" is in (get name of every process)
delay 1
end repeat
end if
end using terms from
end tell
Perfect, thanks a bunch! Should this work for launching a script I have saved as an app called iTunesPlay?
I have the script saved as an app in the Applications folder but simply changing the naming in the script
you provided isn’t working yet. Should it work?
Thanks, appreciate the help. Have to try something else.
I have an app called Arduino that if I replace the names in your script won’t load:
tell application “Finder” of machine “eppc://Carl-Mac-2.local:xx@192.168.1.xx”
using terms from application “Finder”
if “Arduino” is not in (get name of every process) then
open application file id “com.apple.Arduino”
repeat until “Arduino” is in (get name of every process)
delay 1
end repeat
end if
end using terms from
end tell