Score 1 for iTunes AAC!
Related link: http://www.apple.com.itunes/
Getting ready for my day-long drive down to NAMM, I’ve been using iTunes 6.0.2 to burn some podcasts to CD, and I stumbled across some cool features. One of the podcasts, Spacemusic episode 31, was an AAC file with 16 embedded chapter markers. I figured it would transfer to audio CD as one unnavigable 65-minute track, but iTunes actually split it into 16 tracks. Excellent! (It would be even cooler if the program could export the names and durations of the chapters—or print them as a CD cover—but there’s always next rev.)
Ironically, Spacemusic switched back to MP3 format shortly after that podcast because so many listeners were unable or unwilling to play AAC files. Perhaps the MP3 spec will get a chaptering function eventually. The show’s host now provides section start times in the podcast’s description tag, so it wouldn’t be too hard to input them through, say, AppleScript and jump directly to the segment of interest.
Actually, I’d been wanting to do that for a while, so I just modified one of the scripts from my article “Turn Your Mac into an Audio Transcriber”:
tell application "iTunes"
set desired_minutes to display dialog "Set iTunes playback position to this many minutes:" default answer "0" with icon 1
set desired_seconds to display dialog "... and this many seconds:" default answer "0" with icon 1
set goToMin to text returned of desired_minutes as number
set goToSec to text returned of desired_seconds as number
set goToPos to ((goToMin * 60) + (goToSec))
set player position to goToPos
end tell
Paste this code into Script Editor, save it as a script (the iTunes Script folder, ~/Library/iTunes/Scripts, is a convenient place), and then run it. A window will pop up, asking you to enter the minutes. Then a second window will ask for the seconds:
When you enter that number, iTunes will jump to the location you specified. With a long audio file, that’s way easier than rummaging around with the playback position slider. And in conjunction with a streamripper like Audio Hijack, you could automate the process of extracting individual songs....
Other happy iTunes discoveries, anyone?
Categories
AudioComments (4)
Read More Entries by David Battino.

Splitting up long tracks with AppleScript (and QT Pro)
There are several third-party tools, e.g., ChapterToolMe (http://www.rbsoftware.net/?page=ctm) that add chapters. See http://www.voxmedia.org/wiki/PodcastChapterTool for more. I don’t know if they work on protected files, though.
Doug Adams’s “Make Bookmarkable” script (http://www.dougscripts.com/itunes/scripts/scripts07.php?page=1#makebookmarkable) might be of use.
And my article (linked above) on controlling QuickTime Pro has some examples of navigating to specific points in a file.
Score 1 for ID3!
Thanks. That was timely: This document [dated Dec 2, 2005] describes a method for signalling chapters and a table of contents within an audio file using two new ID3v2 frames. The frames allow listeners to navigate to specific locations in an audio file and can provide descriptive information, URLs and images related to each chapter.
MP3 Chapters
"Perhaps the MP3 spec will get a chaptering function eventually."
http://www.id3.org/id3v2-chapters-1.0.html
Splitting up long tracks with AppleScript (and QT Pro)
Is there a simple way to add bookmarks to songs in iTunes? With audio books, it would be great to be able to add bookmarks and then when you burn to disk, iTunes would split tracks up accordingly, right?
I didn't see an obvious way to do this already in iTunes or with AppleScript, so I'm guessing it's not a current feature?
Considering that I don't own a copy of a stream ripper but do own a copy of QT Pro, I was considering trying to script up a solution...something along the lines of breaking up a track into smaller tracks of equal length and then saving them all to separate files -- saving the originals tracks to a backup location, removing the original tracks from iTunes, and then importing the smaller tracks that were just divided.
After looking at QT's scripting dictionary, it looks like it's definitely possible. But before I get started, I'll do some digging...surely someone has been there and done that.
Anyone have any good leads?