Chapter 3. AppleScript in Practice

Now that you have a general idea of what makes AppleScript and application scripting tick, it's time to roll up your sleeves and create your first serious AppleScript.

As a heavy-duty Mac user, I frequently drop interesting-looking web links, text clippings, zip files, and so forth onto my desktop "to put away later." Of course, what actually happens is that I never do get around to filing them away myself; instead, my desktop turns into such a mess that in the end I make myself a new "desktop archive" folder and throw everything into that. Although I might never get around to organizing these files properly, my desktop is nice and clean again—at least until I start accumulating a fresh pile of random files.

Get Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition 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.