Skip to content

Instantly share code, notes, and snippets.

@nandff
Created February 25, 2010 00:38
Show Gist options
  • Save nandff/314083 to your computer and use it in GitHub Desktop.
Save nandff/314083 to your computer and use it in GitHub Desktop.
-- iTunes: wait completion of refreshing a podcast
set podcast_name to "the name of a podcast"
tell application "iTunes"
repeat 600 times
set tl to (tracks of playlist "Podcasts" whose kind is "" and album is podcast_name)
if tl is {} then
exit repeat
end if
delay 6
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment