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

Part IV: Looking More Deeply at Mac OS X > Automating Your Mac with AppleScript

Chapter 18. Automating Your Mac with AppleScript

Anyone who has ever used a computer other than a Macintosh has probably used command files of some sort. On command-line oriented operating systems, command files are executable files that work and look like applications, but are a set of operating system commands executed in sequence by your operating system’s command interpreter. These command files are often referred to as scripts. Unix users have their shell scripts (discussed in Chapter 19) and DOS/Windows users have their batch files. And what do Macintosh users have? Something even better!

AppleScript is a scripting language for the Mac OS that understands how to control and interact with many of your Mac OS X applications, including fundamental parts such as the Finder. AppleScript has been available in the last few versions of the Mac OS, but has been turbocharged by the move to Mac OS X because all of the objects and methods in the Cocoa framework can now be accessed through AppleScript. Not only can you script graphical applications, but AppleScript on Mac OS X also enables you to incorporate Unix shell scripts and calls to Web services using XML into your AppleScripts. The most recent versions of AppleScript and Mac OS X have also added support for the Simple Object Access protocol (SOAP) and eXtensible Markup Language Remote Procedure Calls (XML-RPC), extending the reach of AppleScript to the Web and other Internet-based services.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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