10/15/2010 - If you use iTunes to listen to podcasts, as I do, you may get annoyed by ads in the podcasts.

Here are two useful Applescripts for skipping forward or backwards in iTunes:





Skip Forward 30 Seconds in iTunes

tell application "iTunes"
if player state is playing then
-- length of current track:
set trackTime to duration of current track
--get the current position time:
set currTime to get player position
--to set new position to 30 seconds ahead:
set currSkip to currTime + 30

-- checks if new position is greater than
-- length of track, and corrects it if it is:
if currSkip > trackTime then
set currSkip to trackTime
end if

set player position to currSkip --skip to new position
end if
end tell

Skip Backwards 30 Seconds in iTunes

tell application "iTunes"
if player state is playing then
--get the current track time:
set currTime to get player position
--if track is less than 30 seconds:
if currTime < 30 then
--go to start of the track:
set currSkip to 0
else
--otherwise, skip backwards 30 seconds:
set currSkip to currTime - 30
end if

set player position to currSkip --skip to new position
end if

end tell

Paste the text into Script Editor and save the file as a script or as a runtime. If you use QuicKeys, you can set up a QuicKey to trigger either of these useful scripts, or you can paste the script directly into a QuicKey shortcut.