Trying to launch an app remotely thru ssh. Everything works, except my application name has spaces in it and I'm getting an Apple Script error on the syntax of the "open -a NET\ Render\ Client" string. How do I launch my "Net Render Client.app" with a script via Terminal?
Thanks!
Misha
Code:
tell application "Terminal"
activate
my execCmd("ssh me@hocalhost", 1)
my execCmd("myPassw0rd", 0)
my execCmd("open -a NET\ Render\ Client", 1)
my execCmd("exit", 0)
end tell
on execCmd(cmd, wait)
tell application "System Events"
tell application process "Terminal"
set frontmost to true
keystroke cmd
keystroke return
end tell
end tell
delay wait
end execCmd
Thanks!
Misha