O'Reilly logo

Beginning Mac OS® X Programming by Drew McCormack, Michael Trent

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Overview of Scripting Languages

With its Unix heritage, Mac OS X comes laden with little surprises that are not traditionally of the Mac but now have a home on the platform. Scripting languages are a good example. Before Mac OS X the support for scripting was limited, aside from Apple's own solution—AppleScript. Now you can run any of the scripting languages found commonly on other Unix platforms and Linux directly from your Mac and not have to sacrifice anything. There are even some advantages to using Mac OS X with these languages, such as Cocoa bridging, which allows you to write great looking Cocoa apps in most of the popular scripting languages.

This chapter provides an introduction to scripting in general and an overview of the most important scripting languages on Mac OS X, from the Bash Shell to Python and Perl. Because it would be impossible to cover all scripting languages in one short chapter, a selection of the most important scripting languages has been made. Each of the languages ships with the Mac OS X system, so you can start using them straight out of the box.

In this chapter you learn

  • What a script language is, and how it differs from languages like Java and Objective-C

  • The strengths and weaknesses of the following scripting languages: Bash, AppleScript, Python, Perl, and JavaScript

  • The basic properties of each of the scripting languages, and what each language looks like

  • Where you can learn more about the various scripting languages

  • How to write Dashboard ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required