Create new instance.
If a function fails, this property will contain the last error as a string message, otherwise it will be
Compiles and executes the AppleScript code, calling the subroutine passed with the arguments.
The name of a subroutine in the AppleScript to call. Subroutines are defined using
on subroutineName() syntax in the AppleScript.
true if the AppleScript was compiled and executed without error,
false if not. If
lastError property will contain details regarding the error.
Convenience method to create an AppleScript object.
A string containing the AppleScript code. This code will be compiled and executed when the
execute function is called.
Generated using TypeDoc
AppleScript objects can be used to execute AppleScripts. It is highly recommended AppleScripts be developed and tested in Apple's Script Editor or similar AppleScript editor, and loaded in Drafts when completed.
Note: When executed, AppleScripts are saved to temporary files in the Drafts' script directory at
~/Library/Application Scripts/com.agiletortoise.Drafts-OSXand run. The first time a script is executed, the user will be asked to grant permissions to the script directory.