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


Click here to return to the 'A workaround to sync video podcasts on iPhone 1.0' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A workaround to sync video podcasts on iPhone 1.0
Authored by: allenhuffman on Jul 21, '07 01:03:18PM

Here is the modified script I am using -- it has worked well for the past week, but causes these "podcast" files to appear in other places when you sync to an iPod with video.

Save this file to your Library/iTunes/Scripts folder.

File: iPhoneVidcastToggle.scpt

----start---
(*
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

2007-07-10 allenh - modified to toggle "Show" field for video podcasts and iPhone
2007-07-21 allenh - toggles items ins specified playlist to be "music video".
This will allow them to be synced to an iPhone if they show up in a
playlist. (Normally, video items found in a playlist are NOT synced
to the iPhone UNLESS they also are checked off in the Podcase or Video
section; i.e. you manually have to specify that they sync, and you
cannot just use a smart playlist for it. Hopefully there will be a
true "video playlist" option in an iPhone software update, but until
now this is a usable workaround.
*)

tell application "iTunes"

-- Find smart play list called "Latest Podcasts"
set podcastName to "Recent Vidcasts"
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 video kind of this_track to music video
-- set video kind of this_track to TV show
-- set show of this_track to "Vidcast"
on error
display dialog "A vidcast 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
----end---

If you load it in the Script Editor, you can reformat it to make it look prettier.


---
-- OS-9 Al



[ Reply to This | # ]
A workaround to sync video podcasts on iPhone 1.0
Authored by: avocade on Dec 24, '07 08:04:22AM

Or download the "Set Video Kind of Selected" script from Doug's Apple Scripts.

---
Sanity is statistical



[ Reply to This | # ]