If there’s time left at the end of a podcast I’ve listened to, I skip to the end of the recording, marking the episode for removal from my device. I’ve done this often enough to make scripting a solution worthwhile. Here’s my solution:

tell application "iTunes"
if player state is playing then
set trackTime to duration of current track
set trackEnd to trackTime - 3
set player position to trackEnd
end if
end tell

This AppleScript will take whatever track is playing and skip to 3 seconds before the end of the track, ensuring the session is marked as played. The script will work with music, audiobooks, videos, and podcasts; since I’m particularly interested in ending podcasts, I can use the script to ensure the removal of played files and free space for new ones.