2

image Calling AppleScript from Shells

Calling AppleScript from your UNIX shell environment helps you build a workflow that is controlled from the UNIX environment but can still exploit any GUI-based applications in the desktop world. Realistically, AppleScript is the only language supported under the Mac OS X Open Scripting Architecture by default. The osalang command will reveal the available open scripting interpreters:

osalang –L

Which produces the following result:

ascr appl cgxervdh AppleScript (AppleScript.)scpt appl cgxervdh Generic Scripting System           (Transparently supports all installed           OSA scripting systems.)

There ...

Get Developing Quality Metadata now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.