Many podcasts feature a lengthy intro that you have to hear every time you listen to a podcast. If you, like me, listen to fresh news podcasts every morning, you have to skip introductions manually just to get to the news section. Wouldn't it be nice if podcasts were trimmed automagically? Here's the AppleScript for that.
The script is based on Doug Adams' Reset Tracks Start script (GNU GPL). My version of his script goes through every track in a playlist and sets track start time to 90 seconds (you can adjust this number to suit your needs). "News" is the name of my playlist; change accordingly.
property my_title : "Trim all tracks in a playlist" tell application "iTunes" set thePlaylist to playlist "News" with timeout of 300 seconds repeat with i from 1 to (index of last track of thePlaylist) my reset_this(track i of thePlaylist) end repeat end timeout end tell to reset_this(t) tell application "iTunes" try set start of t to 90.0 on error m log m end try end tell end reset_this
I use crontab to run this script every morning, but you can use iCal:
property my_title : "Trim all tracks in a playlist" tell application "iTunes" set theSelection to selection with timeout of 300 seconds repeat with aTrack in theSelection my reset_this(aTrack) end repeat end timeout end tell to reset_this(t) tell application "iTunes" try set start of t to 90.0 on error m log m end try end tell end reset_this
Mac OS X Hints
http://hints.macworld.com/article.php?story=20120705014936126