10 AppleScripts to make you love your Mac (even more)

Apple's highly useful scripting language is one of the Mac's hidden gems.

1 2 3 4 5 Page 5
Page 5 of 5

AppleScript resources

Interested in getting started with AppleScript -- or delving deeper to write more sophisticated scripts? These resources will help beginners learn the basics, and will help experienced scripters improve their knowledge.


You can find more image scripts and explanation of code from AppleScript 1-2-3 posted on Apple's main AppleScript site.

Macscripter.net. A community focused specifically on AppleScript and other Apple automation tasks, Macscripter features a very helpful series of AppleScript tutorials as well as links to downloadable scripts and other resources. Members are helpful in answering questions; and I've found several solutions to scripting questions just by searching the forums.

Apple's site features a section on learning AppleScript, including sample code, essential subroutines and some text and video tutorials.

Mactopia -- from Microsoft of all places -- has a site specifically for those interested in scripting Office for the Mac, including a VBA to AppleScript migration guide.


AppleScript 1-2-3: A self-paced guide to learning ApppleScript, by Sal Soghoian and Bill Cheeseman (Peachpit Press). At 800+ pages, this isn't meant to be read cover to cover; the first seven chapters are the instructions and the rest is reference. As a reference guide alone, this is a worthwhile book for anyone who wants to get even moderately serious about AppleScript.

AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Second Edition by Hanaan Rosenthal (Apress). A couple of years old now, but I saw plenty of still-useful info during a quick browse of this one, including a lot of details on calling shell scripts.

Free books or book excerpts

There are two AppleScript 1-2-3 chapters available free online at apple.com: The First Step and Image Events.

You can download the first chapter of AppleScript for Dummies, A Cannonball Dive into the Scripting Pool, from the "For Dummies" store (PDF format).

AppleScript for Absolute Starters is available as a free PDF download.


Satimage osax 3.4.0. This free download offers additional capabilities to native AppleScript, including regular expressions, finding and replacing literal search terms, and some mathematical functions like absolute values, sines, cosines and square roots. The Satimage osax 3.4.0 dictionary details all the new functionality.

Using AppleScript in other languages

appscript is a "high-level, user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications from Python, Ruby and Objective-C. Appscript makes these languages serious alternatives to Apple's own AppleScript language for automating your Mac," according to its open-source project page.

I've tried only the Ruby version, which worked fine in my limited testing. There are several explainers online to help you get started installing and using rb-appscript, including articles at the Macdeveloper and O'Reilly Web sites.

Mac::AppleScript::Glue is a CPAN module that "allows you to write Perl code in object-oriented syntax to control Mac applications," by translating Perl to AppleScript. I haven't tried this one yet and it's fairly old (2002), but if you're comfortable in Perl and would like to add AppleScript capabilities to your code without learning the syntax, this is probably worth a try.

Have your own favorite scripts or resources? Let us know!

Copyright © 2009 IDG Communications, Inc.

1 2 3 4 5 Page 5
Page 5 of 5
It’s time to break the ChatGPT habit
Shop Tech Products at Amazon