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

A.10. Chapter 10

A.10.1. Exercise 1 solution

Backing up files and directories is easily achieved using a standard shell like Bash. Bash can find and copy files using commands like find and ditto. You could use other languages, but Bash is the simplest and most universal solution.

A.10.2. Exercise 2 solution

A web content management system is a complex piece of software, and demands a powerful scripting language. Python or Perl would be most appropriate for this purpose. The object-oriented features of Python would make it particularly attractive for building such an advanced system.

A.10.3. Exercise 3 solution

AppleScript wins this one hands down. It is the only scripting language that allows you to directly access data in applications like iPhoto, Address Book, and Mail.

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