r/applescript • u/5-fingers • May 18 '22
Help me with this script please!
So I'm trying to create a bit of apple script that will execute a keyboard shortcut on a remote computer (over a network). The shortcut is shift+Cmd+n. The application is called Timax2
Ive got as far as the script shown in the image.
........ But when I run it I get the syntax error "Application isnt running"..... I know the obvious question is "is the application running on the remote computer?!" And, Yes it is.
The script works if I run it on locally with the app on the same machine the script is run from (removing the "of machine "eppc://10.0.0.33"" bit)
I know the networking connection is ok as I can run a script to "tell "finder" of machine "eppc://10.0.0.33" sleep"
So any suggestions?
View all comments
Show parent comment
3
u/ChristoferK May 28 '22
My suggestion would be to launch the application on the remote machine via Finder. You’ll need the bundle identifier for
application "TiMax2Mac659", which you can retrieve locally with:Then you can use the
bundleIDvariable in the next script or just enter the string value directly: