Stupid Mac::Glue Tricks: Quick-Edit iTunes Track Properties

pudge on 2005-12-01T16:05:31

You can edit properties for tracks at once in iTunes, but not all of the properties are available in the UI. For my iPod shuffle, I like to have audiobooks and podcasts, some of which do not already have "Remember playback position" and "Skip when shuffling" set, as I'd like them to be. And I cannot see a way to modify those in the UI in bulk. Therefore, I select the files I want to edit, and:

use Mac::Glue;
my $itunes = new Mac::Glue 'iTunes';
my $sel = $itunes->prop('selection');
$sel->prop('bookmarkable')->set(to => 1);
$sel->prop('shufflable')->set(to => 0);


What about the "podcast" bit?

sierra on 2006-09-02T16:37:37

I tried a similar approach to tell tracks they were no longer podcasts, but with no luck.

Re:What about the "podcast" bit?

pudge on 2006-09-02T17:20:23

For whatever reason, according to the scripting dictionary for iTunes, podcast is a read-only bit:

        track (cTrk)
                playable audio source

                Properties:

                        album (pAlb/utxt): the album containing the track
                        artist (pArt/utxt): the artist/source of the track ...
                        podcast (pTPc/bool): is this track a podcast episode? (read-only)