Create new instance.
Optional
standardContent sent to standard error during the execution of the script
Optional
standardContent sent to standard output during the execution of the script
Static
createConvenience 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-OSX
and 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.