AppleScript

From RaySoft

AppleScript is a scripting language that makes possible direct control of scriptable applications and of many parts of the Mac OS. A scriptable application is one that makes its operations and data available in response to AppleScript messages, called Apple events.[1]

With scriptable applications, users can write scripts to automate operations, while developers can use AppleScript as an aid to rapid prototyping and automated testing. Developers can also use technologies including Apple events, AppleScript, Automator, and Scripting Bridge, to take advantage of services provided by other applications and by the Mac OS.[1]

Documentation

Further Information

Components

2 pages found:

Additional Resources

3 pages found:

Examples

3 pages found:

Hints

Break long lines

AppleScript allows to break long lines using the NOT SIGN (¬)[2] character.

make new to recipient at end of to recipients ¬
  with properties {name:theRecipientName, address:theRecipientAddress}
Show a macOS notification
display notification "Timestamp: 2020-02-02 02:02:02 UTC" ¬
  with title "Backup" subtitle "Process has finished!"

References