dougscripts.com

Controlling iTunes

January 2 2009 - 7:06 am

Library Follow-Up

After playing around with the "show-library-playlist" setting, it looks like you do have to set "hide-library-playlist" also. So, to show the "Library", run these two commands in Terminal one after the other (that is, press Return after entering each):

defaults write com.apple.iTunes show-library-playlist -bool TRUE
defaults write com.apple.iTunes hide-library-playlist -bool FALSE

To hide the Library again, run the same commands, but reverse the TRUE/FALSE values.

January 1 2009 - 1:59 pm

Show the iTunes Library Old School

I'm not certain if this has been mentioned anywhere--I haven't seen it--but I found the defaults command for displaying the entire iTunes library. Remember when you actually had a large playlist named "Library", before Apple split it up into--what I call--"Master" libraries of "Music", "Movies", "Podcasts", and so on? The "Library" listed everything in your iTunes library. Well, you can get that back using this command in Terminal:

defaults write com.apple.iTunes show-library-playlist -bool TRUE

Quit iTunes before entering the command. When you restart you'll have a new playlist named "Library" at the top of your Source list, above "Music".

If you want to remove the "Library" again, use this command in Terminal:

defaults write com.apple.iTunes show-library-playlist -bool FALSE

There is a second preference called "hide-library-playlist", which I at first thought would have to be set in tandem with the opposite of "show-library-playlist", but this doesn't seem necessary. In fact, you can set one or the other, apparently, and get the desired result; that is setting "show-library-playlist" to TRUE or setting "hide-library-playlist" to FALSE amounts to the same thing. Also, for AppleScript purposes, this playlist can be referenced as library playlist 1; it always could be, but now it is visible.

April 29 2008 - 4:26 pm

UPDATED: Needle Drop v3.0

Fixed an error in Needle Drop when canceling from the first dialog box, made it universal binary, and added the ability for it to quit automatically if you pause iTunes while running it. This script will play through the tracks of the selected playlist at your set time interval.

April 25 2008 - 7:41 am

Automatically Download Available iTunes Purchases

If you subscribe to any TV Shows from the iTunes Store Apple can send an email notifying you when the latest episode is available. Then you can go to iTunes' "Store" menu, click "Check for Purchases...", and the download will commence.

A while back I had posted a script called Check For Purchases which used GUI scripting to automate this process. It required that you hardcode your iTunes Store user name and password in the script and also have GUI scripting enabled. Yuck. These are two of my least favorite--if not my most least favorite--techniques for using a script. But, it turns out, there's an even simpler and better way to accomplish this...

April 4 2008 - 10:43 am

UPDATED: Quick Convert v2.7

Quick Convert converts the iTunes track selection using your choice of encoder, restoring your Preferences-set encoder afterwards. Latest version is universal binary, ensures that files converted to AAC with the bookmarkable option are re-added to "Audiobooks" Master Library correctly.

April 2 2008 - 5:57 pm

NEW: Now Where Was I

Use Now Where Was I? to start and quit iTunes: when run while iTunes is playing, it will remember the currently playing track and quit iTunes; when run next it will start iTunes and play the remembered track.

April 2 2008 - 5:55 pm

UPDATED: BlockParty! v2.0

I have updated Block Party! to version 2.0. I actually did this a couple of days ago but with the site problems mentioned below I hadn't gotten around to mentioning it.

November 16 2007 - 1:10 pm

CBR and All That

OK, so we know that unchecking AAC VBR in Preferences > Advanced > Importing actually gives you ABR (Average Bit Rate) encoding and checking it gives you VBR_Constrained. I just put up a script that uses afconvert to import CD tracks as old-style CBR (Constant Bit Rate). However, even this apparently does not provide a constant bit rate. For example, after ripping a few tracks with it and attempting to join and export them in QuickTime, I do not get the pass through option. Checking their info with the QT Inspector the bit rates are indeed slightly different. Here's what's weird: CD tracks I ripped with a pre-v7.5 iTunes without VBR also have slightly different bit rates, but QT allows the export as pass through. I've gotta do some research.

July 30 2007 - 1:20 pm

Hourly Newcasts - What I Do

I just released Play Hourly Newscasts which I've been working on for weeks; the things have gotta be tested in real time which takes hours a day when I have the time. ANYway, I've got a playlist I run everyday called "100 Songs or More". It's a Smart Playlist limited to 200 songs, live updated, selecting random songs according to various criteria. When nothing special is going on Around The House this is the playlist that plays pretty much all day (I work out of my house). I run one of the Newscast applets while this playlist is playing and every hour I get that newscast. Just like the way radio used to be before radio Program Directors decided news and music didn't mix.

July 30 2007 - 12:38 pm

UPDATED: Play Hourly Newscasts v1.2

The Play Hourly Newscasts download contains four script applets that each, respectively, download and play the latest AP NewsPulse, BBC Hourly World News Bulletin, CNN News Update, or NPR Hourly News Summary podcast episode when it becomes available enabling you to integrate an hourly newscast into your iTunes music listening throughout the day. This latest version consolidates the four applets into single download; streamlines routines.

Site contents © 2001 - 2024 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not be interrupting the one who is doing it.