Spark AppleScript
Action


What is an AppleScript Action?

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.

How to create an AppleScript Action?

There are 2 possibilities to create an AppleScript Action. First, you can use the Editor to type the Script you want to execute.

The "Check" button allows verifing if your script is syntactically correct.
The "Run" button allows trying the script, and the "Open" button imports the content of a Text file or a Script file in the text area.
The "Editor" button opens the content of the text area in the Apple "Script Editor" Application.

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.

Release Notes