A series of command declarations that surplant the builtin definitions of some common AppleScript commands to increase versatility and functionality:
-
do shell scriptSupply the shell command string optionally as a list of strings that will be concatenated and delimited using a space character -
load scriptUse 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) -
offsetReturn a list of all offsets of a substring. Includes recursive and iterative routines, the latter being the most efficient. -
path toReturns posix paths. Accepts posix paths that are standardised before returning the full path of a file or folder. -
current dateThe current date and formatted according to ISO-8601 standards, i.e.yyyy-mm-dd hh:mm:ss -
clipboard infoA 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.