Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pudge (1)

pudge
  (email not shown publicly)
http://pudge.net/
AOL IM: Crimethnk (Add Buddy, Send Message)

I run this joint, see?

Journal of pudge (1)

Thursday December 01, 2005
11:05 AM

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

[ #27817 ]

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);

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I tried a similar approach to tell tracks they were no longer podcasts, but with no luck.
    • 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