For longer than I care to admit, every time I ejected my iphone from itunes, I would get frustrated that I had to go into itunes to eject my iphone.
Why can’t quicksilver do this? Why isn’t there a script?
I already had a script to initiate the sync, but not to eject. I’ve tried to make one, and checked the itunes “dictionary” in the script editor countless times, but never saw the eject command.
So, today, I googled it.
The same place I found a script to sync — here, at Macworld’s OS X Hints site — in the same post no less (!!!), there’s a script to eject the phone.
To set this up, it’s simple.
First, open the AppleScript Editor application. Next, create two new script files, and paste each one of the scripts on this page into a new script.
Save them both in the Quicksilver Actions folder (by default: Home -> Library -> Application Support -> Quicksilver -> Actions). You can name one something like “itunes_sync” and the other “itunes_eject” — or whatever you can remember, as those are the scripts you’ll be calling in Quicksilver.
Next, rescan the Quicksilver catalog (if you just type “rescan” in Quicksilver, it will bring up the “Catalog Rescan” action for you to run), and your scripts will be ready to go.
Plug in your iphone, type the name of the sync script you created, and watch it go! Same for the eject.
You’ll probably want to change the score for an abbreviated form of the script’s name to call it — I have “it” set to call my sync script.