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 ...

Get Beginning Mac OS® X Programming 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.