OptionalstandardContent sent to standard error during the execution of the script
OptionalstandardContent sent to standard output during the execution of the script
Executes the shell script.
An array of string arguments to pass to the script. These will appear to the script as command line arguments would.
true if the script was executed without error, false if not.
StaticcreateConvenience method to create a ShellScript object.
A string containing the shell script. This should contain the appropriate "she bang" to trigger the appropriate scripting language/shell.
ShellScript objects can be used to execute Unix shell scripts.
Bash Example
Ruby Example
Note: When executed, scripts are saved to temporary files in the Drafts' script directory at
~/Library/Application Scripts/com.agiletortoise.Drafts-OSXand run. Scripts should not be written to make assumptions about their location in the file system (e.g. using relative paths). The first time a script is executed, the user will be asked to grant permissions to the script directory.