Sync or eject iPods/iPhones in iTunes via AppleScript

I find it frustrating that there's no quick and easy way to sync my iPod and iPhone in iTunes without a degree of mouse movement and clicking (someone please correct me if I'm wrong!). Since I'm a keyboard navigation fan, I wrote some very simple AppleScripts to either sync or eject all iPods/iPhones currently connected to iTunes. The scripts are identical apart from the type of action:Sync iPod.scpt:tell application "iTunes" repeat with s in sources if (kind of s is iPod) then update s end repeatend tellEject iPod.scpt:tell application "iTunes" repeat with s in sources if (kind of s is iPod) then eject s end repeatend tellI personally have these scripts in my user's Library/Scripts folder, and use Quicksilver to quickly invoke them when I want to force a sync or eject of my iPod/iPhone. view original article
Fri, 25 Apr 2008 16:30:00 +0200

more MacOSXHints.com articles