On this page... (hide)

  1. 1. The Parameters window
  2. 2. Hints

AppleScript is a system language that you can use to trigger complex events. In Mac OS X, it used to allow interaction between applications that support that language.

You can trigger an AppleScript with an OSC message, by writing the little piece of code in the Parameters Window.

1.  The Parameters window

First, create an empty script by clicking the '+' sign. Double click the script name to change it. You can now write or paste the code in the text editor.

When clicked, the hammer button will compile the script. If the script doesn't contain any error, the formatting of the script will changed to show it is well understood. You can also simulate the script by clicking the green 'play' button.

As with all trigger based events, AppleScripts will be triggered when the received OSC value crosses 0.5.

2.  Hints

It is recommended to use the application "Script Editor" (found in the Applications folder of Mac OS X) to write complex scripts: the results window gives informations about the running script that is not available in OSCulator.

Also, you have to bear in mind that AppleScript is not a language designed to be powerful in its speed of execution, but rather powerful in its expression. For that reason, you may not want to trigger AppleScript too rapidly, or at least give it the time to execute until it is done, or you could experience weird behaviors.

 

<< HID Joystick | UsersManual | Console Log >>