(* Script to make podcasts load onto iPod shuffle. Works by deselecting "Skip when Shuffling" option for all tracks in smart playlist © G W Aylward 2007 *) tell application "iTunes" -- Find smart play list called "Latest Podcasts" set podcastName to "Latest Podcasts" set noPlaylist to true set smartPlaylists to (get every user playlist whose smart is true and special kind is none) repeat with thisPlaylist in smartPlaylists if name of thisPlaylist is podcastName then set noPlaylist to false -- Set every track to shuffleable set allTracks to every track of thisPlaylist repeat with this_track in allTracks try set shufflable of this_track to true on error display dialog "A podcast could not be set" end try end repeat display dialog podcastName & " is now ready for autofill" end if end repeat if noPlaylist then display dialog "No smart playlist called '" & podcastName & "' found" end if end tell