...
Click on the “Add” button to select the “Apple Event Script” Device from the “Device & protocol” list and press the “Add…” button to create the Device. Further configuration will be done within the Recording Event itself. Please see below:
...
Presets
Set To create a new Preset, define a name for the Preset, select “Apple Event Script” and press the “Add” button.
...
Then add your Apple Script code and use the “Test” button to test the script (recommended). Once done, use the “Compile” button to complete this step.
...