A series of command declarations that surplant the builtin definitions of some common AppleScript commands to increase versatility and functionality:
-
do shell script
Supply the shell command string optionally as a list of strings that will be concatenated and delimited using a space character -
load script
Use scripts stored in text files that can be referenced by posix paths utilising~/
, or any other type of AppleScript file reference (e.g.POSIX file
,file
,alias
) -
offset
Return a list of all offsets of a substring. Includes recursive and iterative routines, the latter being the most efficient. -
path to
Returns posix paths. Accepts posix paths that are standardised before returning the full path of a file or folder. -
current date
The current date and formatted according to ISO-8601 standards, i.e.yyyy-mm-dd hh:mm:ss
-
clipboard info
A list of data types contained on the clipboard (without their byte sizes)
These can be especially useful when defined within a script object, although top-level declarations may be warranted, in which case these will become the default handler when called. To make use of the original builtin, use continue
.