What is AppleScript?

AppleScript is the Mac’s built-in scripting—that is, programming—language. (It’s been around since 1993, with System 7.1.) Even without learning to write your own scripts, you can use scripts to control any program (Apple’s or otherwise) whose developers have made it scriptable, meaning that they’ve built the necessary code into their program and provided an AppleScript dictionary. In other words, although the AppleScript language is built into Mac OS X, you can use it to control programs like Entourage, Word, iCal, iTunes, Adobe InDesign, and Photoshop.

Why Use AppleScript?

The vast majority of Office fans never dip a toe into AppleScript. But if you use Office to run a business or manage a department, you’ll probably find a use for it. The advantage of AppleScript is that you only need to learn one programming language to communicate with every scriptable program on your Mac. For example, you can create a workflow that takes data from the Entourage Address Book and puts it into both Excel and FileMaker Pro, then prepares a Mail Merge in Word using the same information to type personalized form letters and envelopes, and then sends an email message from Entourage.

  • Automate. Perform repetitive tasks automatically in a few seconds, instead of spending minutes or even hours plowing through them yourself. For example, you can run a script in Entourage to set the default address to the Home address, rather than Entourage’s default of the Work address. If you have 1,000 contacts, this script will take about a minute to run, as opposed to multiple hours opening and changing each contact manually. Now you can print address labels for your Wear-Your-Bathrobe-to-Work Day cards without skipping the folks whose work addresses you don’t know.

  • Customize. Devise your own routines, sometimes even doing things that are impossible to do yourself onscreen in the first place. The world is your oyster: You can write scripts to duplicate calendar events (Entourage can’t do that on its own), add a BCC to your boss on all email messages you send out, add a contact to a particular group without messing about finding or opening the group, remove all single carriage returns pasted into a Word document in one fell swoop without affecting double-returns at ends of paragraphs, and much, much more.

  • Interact. Control several different programs in one workflow. You can take a letterhead document you’ve created in Word and have it open as a new letter addressed to a selected Entourage contact, complete with date, address, salutation, and signature already in place. Or you can export full contact information (street, city, state, phone numbers, email addresses, and so on) for every member of a group or category to an Excel worksheet or FileMaker Pro database—or both.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.233.153