How to create an AppleScript that will control an Application on a Remote computer ?

You may know that most Softron Applications are AppleScriptable. This enables a lot of too often unknown features. Lot of things can be automated using AppleScripts. For example you can start a playlist automatically at given time of days using iCal, or start recording, etc..

But sometimes you may want to start an AppleScript on one computer (for example using the OnTheAir Video Actions), but start MovieRecorder on a remote computer. For that you have to follow these steps:

On the computer you want to control

  • Check its IP address, the login and password.
  • Enable "Apple Remote Events" in the System Preference / Sharing tab

On the computer that will control the application

  • Make sure that you have the application also installed (so if you want to control MovieRecorder, you need to have MovieRecorder installed)
  • Build your AppleScript as follows (using the correct username, password, and IP address of the target computer)

tell application "MovieRecorder" of machine "eppc://username:passsword@IPaddress"

tell first source

record

end tell

end tell

Don't forget that for OnTheAir Video, you have to add  "On Action (parameter)" at the beginning and "end Action" at the end of the AppleScript as well as "ignoring application responses". For more info on how to build AppleScripts for OnTheAir Video, refer to the manual or to the OnTheAir Video Knowledge Base.

Have more questions? Submit a request

Comments

Powered by Zendesk