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

Chapter 9. Basic Application Scripting > Getting Ready to Script

9.2. Getting Ready to Script

Before you begin to script applications, you'll need to have at least a passing command of AppleScript or some other programming background that will let you follow the examples provided in this chapter. You aren't required to have mastered the language before working through these projects, but it helps to have at least a basic familiarity.

AppleScript is a language that was designed for use by a wide audience without needing a strong programming background. With its "English-like" syntax and simple data structures, it's a very approachable programming language. As Example 9-3 shows, a snippet of AppleScript code remains very readable even when dealing with mathematics and string concatenation. This example converts a number from Fahrenheit to Celsius, then speaks the results out loud. The lines starting with a double dash are comments.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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