![]() |
Spark AppleScript
|
An "AppleScript Action" is a Spark Action that allows executing an AppleScript.
You have to possibility: Execute a script you record in the Action or execute a Compile Script File (.scpt).
The AppleScript Plugin includes a basic Script Editor.
There are 2 possibilities to create an AppleScript Action. First, you can use the Editor to type the Script you want to execute.
If you want to execute a long script or if you want a script that is already compiled you can choose the second possibility.
Click on the "File" Tab and then choose the Script File you want to execute. This script File must be a Compiled Script. If you want to execute a long script, it is better to compile it with the Apple Script Editor and save it in a file.
The kind of Action Spark will create depend of the selected Tab. If the current tab is the File Tab, then Spark will try to create an Action that will execute a Script File, and if it is the Source Tab, then it will record the script in the Action and execute it on demand.