• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. AppleScript > Scripting the Terminal

16.3. Scripting the Terminal

As Chapter 19 describes, the Terminal application doesn't do anything so much as it provides a command-line interface to Darwin, the Unix system running underneath Mac OS X's GUI layers. AppleScript reflects this by offering only one real Terminal-scripting command: do script. If you tell the Terminal application do script some_command, then the Terminal acts as if you had invoked some_command by typing it on the command line.

For example, here is an alternate way to send someone email through an AppleScript, going through the Darwin's mail command (via the Terminal) instead of the Mail application (assuming that you have a mail server running locally):


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint