- 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
-
- related articles found at MacOSXHints.com
- 10.4: Sync iTunes via rsync, python, and Automator Fri, 02 Mar 2007 16:30:02 +0100
- 10.5: Eject drives and run iSync before sleep via script Fri, 25 Apr 2008 16:30:00 +0200
- A solution for iPods not synching in iTunes 7.5 Mon, 26 Nov 2007 16:30:00 +0100
- Sync more data from iTunes to manually-synced iPods Mon, 07 May 2007 16:30:03 +0200
- Update podcasts, sync to iPod and eject iPod via script Thu, 03 Aug 2006 16:30:02 +0200
- 10.5: Eject stubborn disk images via AppleScript Wed, 21 May 2008 16:30:03 +0200
- Easily add lyrics to iTunes songs via AppleScript Wed, 16 Jul 2008 16:30:05 +0200