Enhancing iLife with AppleScript
With the exception of iMovie, the iLife applications (and the iPod, as well) are scriptable. This means that you can write AppleScript code to automate repetitive tasks, communicate data from one program to another, and perform operations that are inaccessible from the program's menus and buttons.
Even if you don't want to learn to program, you shouldn't skip over this material. Untold numbers of useful AppleScripts are ready for you to use. You don't have to know C++, Objective-C, Pascal, Java, or some other language to use programs written by others in these languages for iMovie, iTunes, iPhoto, iDVD, Photoshop, and so on.
Of course, if you're a little curious and willing to put some time and effort into learning AppleScript programming, you'll have an even richer experience because most of the AppleScripts you can download are easily modifiable.
Scripting iTunes
Of all the iLife applications, iTunes has the longest, richest AppleScript history and the greatest AppleScript support. iTunes even includes a Scripts menu (the little scroll icon between Window and Help) to provide easy access to your iTunes scripts. These scripts live in one of the following locations:
- A Scripts folder contained in your Home Library's iTunes folder
- A Scripts folder in the iTunes folder of your startup disk's Library folder
The scripts in your startup disk's Library folder are accessible to any user on your Mac running iTunes. The scripts in your Home Library's iTunes folder are accessible only by you.
AppleScripting iPhoto
Although iPhoto doesn't offer a Scripts menu of its own, you can get the same effect by using the system-wide Scripts menu. Inside the AppleScript folder within your Applications folder is a file that bears a folder icon named Script Menu.menu. Double-click this folder icon to add a system-wide Scripts menu to the right side of your menu bar. The system-wide Scripts menu provides a home for the scripts used with applications that don't provide Scripts menus of their own.
Apple makes a nice assortment of example scripts available at Apple.com. Not only are these great examples from which you can figure out scripting techniques, but most of them are also extremely useful in their own right. One example, Find Unassigned Images, creates an album for you consisting only of images from your photo library that aren't already in at least one album. Not only is that script useful, but you can also easily modify the script to create a list of albums to which an individual photo belongs.
AppleScripting iDVD
As with iPhoto, you can most easily access iDVD's scripts by using the system-wide Scripts menu. A good starter set is available at Apple.com.
Even as handy as those scripts are, a full-blown application named iDVD Companion is available from the AppleScript iDVD Web page. iDVD Companion is written in AppleScript Studio, a pure OS X development environment where you use AppleScripts to do your work and Apple's development tools (they're part of your OS X distribution but aren't installed by default) to create the user interface. Note that some scripts may not work with the current version of iDVD.
The iDVD Companion window contains the following tabs:
- Nudge: Use this tab to move selected buttons in 1-, 6-, 36-, or 72-pixel increments to the left, right, up, or down.
- Align: With this tab, you can line up the left, right, top, or bottom edges of two or more selected buttons.
- Title: This tab sets the location for the menu's title.
The iDVD Companion menu bar includes other helpful shortcuts. In addition to the Select Back Button choice, the Edit menu also includes commands that allow you to Select All buttons, Deselect All buttons, and Delete All buttons. Be careful, though, with the Delete All buttons command; no undo is available.
Navigating your menu structure in iDVD to make changes to subordinate menus can be time-consuming and annoying. iDVD Companion provides a Go menu that enables you to select your destination menu from a list and then tells iDVD to display that menu, eliminating the need to navigate a possibly complex menu structure. The Themes menu sports a handy little Layouts submenu with four predefined button layouts. The Button menu enables you to name buttons, specify exact positions for buttons, and swap the positions of two selected buttons.
One of the better features of iDVD Companion is that all these palette and menu operations take place by calling AppleScripts, and the source code for all those scripts is present for you to look over and modify as you desire.

Macs and OS X Glossary
802.11x wireless
A protocol for connections to your Ethernet network and your Apple TV unit.

Macs and OS X Glossary
Address Book
The place for addresses, phone numbers, and e-mail addresses on the Mac. You can also add a picture and note about the person.

Macs and OS X Glossary
alias
A pointer to another application of folder.

Macs and OS X Glossary
Bluetooth
A short-range wireless technology that lets your Mac communicate with other compatible gadgets, from up to 30 feet away.

Macs and OS X Glossary
ColorSync
A printer setting that lets you add black and white, blue tone, sepia, or other filters.

Macs and OS X Glossary
cookie
A small file that a web site automatically saves on your hard drive. It contains information that the site will use on your future visits. For example, a site might save a cookie to preserve your site preferences for the next time or ¯ in the case of a site such as Amazon.com ¯ to identify you automatically and help customize the offerings that you see.

Macs and OS X Glossary
Dashboard
A translucent screen that lays on top of your desktop and houses clever little applications called widgets.

Macs and OS X Glossary
desktop
The whole of your Mac’s computer screen. Also called the Finder.

Macs and OS X Glossary
Discoverable mode
Helps other Bluetooth devices find your Mac.

Macs and OS X Glossary
Dock
The colorful bar on the bottom of the Mac screen. It’s a rough cross between the Windows taskbar and the Start menu.

Macs and OS X Glossary
double-clicking
Left-clicking twice in rapid succession while keeping the cursor in the same location.

Macs and OS X Glossary
dragging
Positioning the cursor on top of a symbol or icon and then holding down the mouse button and rolling the mouse across your desk, which moves the symbol or icon to a new location.

Macs and OS X Glossary
driver
A software program provided by the printer manufacturer that tells Mac OS X how to communicate with your printer.

Macs and OS X Glossary
Dynamic Host Configuration Protocol; DHCP
A protocol that enables a computer to automatically get connection information for communicating with a network or your ISP.

Macs and OS X Glossary
Exposé
A Mac feature that, with a click of a button, organizes your Mac desktop.

Macs and OS X Glossary
FileVault
A Mac feature that automatically scrambles, or encrypts, the data in your Home folder.

Macs and OS X Glossary
Finder
The application that Mac OS X runs to display the operating system’s menus and windows.

Macs and OS X Glossary
FireWire
A speedy connector often used with digital cameras.

Macs and OS X Glossary
FTP
Part of the TCP/IP protocol suite; (the hoary acronym FTP stands for File Transfer Protocol. FTP is one of the oldest methods for sharing files between computers

Macs and OS X Glossary
function keys
Housed on the top row of the Mac keyboard, the keys with the letter F followed by a number.

Macs and OS X Glossary
iCal
The Mac’s built-in calendar.

Macs and OS X Glossary
iDVD
The application that lets you burn movies onto a disk.

Macs and OS X Glossary
iMac
A Mac desktop computer.

Macs and OS X Glossary
iPhoto
The application where you store and touch up digital images.

Macs and OS X Glossary
iSync
The application that keeps your calendar, Address Book, and Internet bookmarks synchronized across multiple devices.

Macs and OS X Glossary
iTunes
Apple’s renowned musical jukebox.

Macs and OS X Glossary
iWeb
The tool that lets you create personal Web sites, blogs, and podcasts.

Macs and OS X Glossary
Lightweight Directory Access Protocol; LDAP
With LDAP, you can search a central company directory from anywhere in the world as long as you have an Internet connection.

Macs and OS X Glossary
Lightweight Extensible Authentication Protocol
An encryption protocol developed by Cisco Systems for superior security in the business world.

Macs and OS X Glossary
Mac Mini
Apple’s budget desktop computer. Weighing less than 3 pounds, it’s portable, but not in the same sense as a notebook.

Macs and OS X Glossary
Mac OSx
The operating system that Apple included with all new Mac computer systems since 2002.

Macs and OS X Glossary
Mac Pro
A Mac desktop intended for professionals facing demanding graphics and other computing tasks. Its arrival completed the transition of the Mac line to Intel processors.

Macs and OS X Glossary
MacBook Air
Apple’s super-thin Mac. Encased in aluminum with a 13.3-inch display, Air measures just 0.16 inches at its skinniest point and just 0.75 inches at its thickest. But it still boasts a full-size keyboard and very good battery life.

Macs and OS X Glossary
MacBook, MacBook Pro
Apple’s successor to the PowerBook.

Macs and OS X Glossary
Mail
Apple’s built-in calendar.

Macs and OS X Glossary
MobileMe
The application that keeps your e-mail, contacts, and calendar synchronized, no matter what device you’re using.

Macs and OS X Glossary
Network interface card
A hardware device that your computer uses to talk to the rest of the network.

Macs and OS X Glossary
operating software
The software that makes a Mac work.

Macs and OS X Glossary
parental controls
Safety features that let you place limitations on your child’s computer use.

Macs and OS X Glossary
partition
A formatted section of a disk that contains data.

Macs and OS X Glossary
PDF
A special document display format developed by Adobe; they display like a printed document but take up minimal space.

Macs and OS X Glossary
phishing
A form of Internet fraud where identity thieves, posing as a respectable financial or Internet company, tries to dupe you into clicking phony links to verify personal or account information.

Macs and OS X Glossary
RAID set
A group of multiple separate disks, working together as a team.

Macs and OS X Glossary
Safari
The Mac’s Web browser.

Macs and OS X Glossary
Smart Groups
A way to group contacts in your Address Book.

Macs and OS X Glossary
Smart Mailboxes
Searches for e-mail that matches specific search criteria.

Macs and OS X Glossary
Spotlight
The Mac’s search technology.

Macs and OS X Glossary
start-up disk
The boot drive that contains the Mac OS X system you’re using at the moment

Macs and OS X Glossary
thread
Contains an original message and all related replies, which makes it easy to follow the flow of an e-mail discussion without bouncing around within your Inbox, searching for the next message in the conversation.

Macs and OS X Glossary
trackpad
The smooth surface below your Mac keyboard that’s your laptop’s answer to using a mouse.

Macs and OS X Glossary
USB port
The place on your Mac where you plug in devices you want to connect, such as printers, scanners, digital cameras, and more.

Macs and OS X Glossary
Voiceover
A screen reader designed to make using a Mac easier by speaking the contents of the screen.

Macs and OS X Glossary
wireless network
A network that isn’t connected by wires but uses radio waves, instead.