«

»

Sep 07

Print this Post

iTunes Podcast Playcount Updater ver2

This is a script to keep iTunes from unsubscribing to podcasts that you do not listen to regularly.

To use:

  • Copy and paste the following text into notepad and save it with a “.vbs” extension  for example “KeepPodcastsCurrent.vbs”. Then either put it in your task scheduler or run it regularly.

OR

  • Download the attached .zip file and extract the VBS.

Keep Podcasts Current
Keep Podcasts Current
KeepPodcastsCurrent.zip
Version: 2
365.0 B
33 Downloads
Details

2012-01-26 Update: Modified script to load the “Podcasts” playlist and check all items rather than looping through the entire library looking for individual podcasts. This makes the script run much faster for users with large iTunes libraries.

Set iTunesApp = CreateObject("iTunes.Application")

set libSource = iTunesApp.LibrarySource
set colPlaylists = libSource.Playlists
set colPodcasts = colPlaylists.ItemByName("Podcasts")

for each item in colPodcasts.Tracks
	if item.PlayedCount = 0 then
		item.PlayedCount = 1
		item.PlayedDate = now
	end if
next

Permanent link to this article: https://www.wperry.net/code/itunes-podcast-playcount-updater-ver2/

Leave a Reply

Your email address will not be published. Required fields are marked *