Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Update podcasts, sync to iPod and eject iPod via script iPod
My MacBook Pro is attached to all sorts of hardware, and it's always a pain to quit apps, switch locations, etc. I always do the same thing, so I wrote a series of scripts which automate everything I need to do before I unplug.

The iPod part of my script (AppleScript) is something that I haven't seen on hints before, so I figured I'd share. It updates all your podcasts, syncs your playlists with your iPod, and then ejects the iPod. The contribution here is that it does all this without resorting to adding static delays.

The recommended iTunes setup is to update all podcasts hourly, enable disk use on the iPod, and use automatically updating smart playlists.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[10,581 views]  

Update podcasts, sync to iPod and eject iPod via script | 3 comments | Create New Account
Click here to return to the 'Update podcasts, sync to iPod and eject iPod via script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Update podcasts, sync to iPod and eject iPod via script
Authored by: walueg on Aug 13, '06 12:09:21AM

Can you explain to me how delay works? When I run this script, it wants to eject my ipod before the update is complete so something's breaking there.

Thanks!



[ Reply to This | # ]
Update podcasts, sync to iPod and eject iPod via script
Authored by: yanokwa on Aug 13, '06 08:57:26AM

The delays work by checking if the size of the playlist (either Podcasts the iPod itself) is changing. In the case of the iPod, it's very reliable because it's when you update it's either changing in size or not. The delay here is just how often the script should check the iPod's size.

With the podcasts, iTunes checks each podcast to see if there is an update. If there is, it starts downloading the update. The problem arises when there are no podcast updates, you what to give the script enough time to check all podcasts if there are no updates, so this delay has to about 1 second per podcast, with a 2-3 second buffer for network delays.



[ Reply to This | # ]
Update podcasts, sync to iPod and eject iPod via script
Authored by: sanfranciscotx on Mar 04, '11 05:45:38PM

There's a new app on the Mac App Store called "Castmaster" that does this much more elegantly.



[ Reply to This | # ]