dougscripts.com

February 19 2013 - 7:06 pm

iTunes 11.0.2 Released

Apple released iTunes 11.0.2 today. It fixes some iCloud/iTunes Match playlist issues, adds a Composer View, and other fixes and performance enhancements. More as it develops.

January 30 2013 - 9:52 am

NEW: Search Results to Playlist

I've been using a variation of this search script for a while so I thought I'd update it with some customization settings nailed on and post it (there's a simple snippet version of it here). The thing is: I often want my iTunes search results to go directly to a playlist so I can get right to work on them there, usually tag editing. Without some automation this is typically a multi-stage grind comprised of searching, selecting track results, making new playlist, naming new playlist, locating and selecting the tracks again when new playlist gets focus (stab!), putting tracks into playlist by any one of various means, and then forgetting why I was searching for these tracks in the first place. (Related memory-loss issue: Name New Playlist From Selection.)

Search Results to Playlist puts a floating window over iTunes that provides the ability to search iTunes and copy the track results to a designated Results Playlist.

It can search the entire library, the selected playlist, or any of the categories (Music, Movies, Books, etc) for text in All, Name, Artist, Album, or Composer tags and then copy the results to a playlist. The script will create this Results Playlist if necessary. If the playlist already exists then the track results can replace its current contents or may be appended to it.

more

January 15 2013 - 1:54 pm

NEW: Export Selected With M3U

I've never had much use for M3U playlist files until we finally got a car (2011 Dodge Charger) with an audio system (so-called) that can accept a USB stick. Plus, over the years I've often been asked about getting iTunes files onto portable media (going back to the MiniDisc). So I whipped up this script, Export Selected With M3U, to export a selection or playlist of tracks' files to a user-chosen location and then create an M3U playlist file referencing the tracks:

And because not every player can use this configuration, there's also an option to place the audio files in a discrete subfolder.

...more

January 15 2013 - 1:19 pm

Dupin Lite v1.2.3 Released

Dupin Lite has the same powerful Get Dupes-Filter-and-Purge features as the original Dupin but with fewer power-user features. If you aren't interested in managing duplicate tracks as much as just identifying and eliminating them then Dupin Lite may be right for you.

Dupin Lite v1.2.3 clarifies the "cloud tracks detected" alert message. Update or purchase now at the Mac App Store.

January 12 2013 - 12:25 pm

UPDATED: Search-Replace Tag Text v3.4

Search-Replace Tag Text performs a search-and-replace with the text in your choice of tag (Song Name, Show, Artist, Album Artist, Album, Composer, Comments, Genre, or Grouping) in the selected tracks or all the tracks in the selected Playlist. Features case sensitivity and whole word match options and dry run preview.

This latest version enables the window to be resized horizontally in order to expand the width of text entry fields.

December 19 2012 - 11:54 am

iApps.plist Issue?

As you may know, the location of the current iTunes library's database files can be read from a user preferences file named "com.apple.iApps.plist". This preferences file also maintains the location of the current iPhoto library and perhaps the locations of other apps' support files. By default, the location of the current iTunes database files is in ~/Music/iTunes/, like in the screenshot below. If or whenever you select or create a new library by Option-launching iTunes the location you select is stored in the iApps.plist as iTunesRecentDatabasePaths. Third-party apps can then locate the current database by simply reading the meta data from the iApps.plist.

Recently, since the launch of iTunes 11, I've been hearing from Correspondents who report that some of my software (apps and scripts) that need to access the iApps.plist are no longer finding the iTunesRecentDatabasePaths data. In fact, their iApps.plist file does not even contain the data. Somewhow it has not been updated correctly. Thus, when an app or script tries to read the iApps.plist it fails with a Console error like "The domain/default pair of (/Users/SomeUser/Library/Preferences/com.apple.iApps, iTunesRecentDatabasePaths) does not exist".

The fix is, first, to make sure you note the location of your iTunes support files. If you've never used the Option-launch method of creating a new library then this location is your home folder's "/Music/iTunes/" folder. Otherwise, well, I suppose you know where you created a new library. Now, quit iTunes. Hold the Option key and launch iTunes again. In the dialog that appears click the "Choose Library" button. Navigate the Open dialog to the folder you just noted (it will contain an "iTunes Library.itl" file and one or the other of an "iTunes Music Library.xml" or "iTunes Music.xml" file) and click the "Open" button. This should write the location to the iApps.plist correctly allowing scripts and apps to read it without error.

December 16 2012 - 2:10 pm

Show Current Song, Really

iTunes 11.0.1 fixes an issue with the "Show Current Song" (the Command-L shortcut). Before iTunes 11, using this command would select the currently playing track in the playlist it was playing from. In iTunes 11 there seemed to be some inconsistency with this behavior in different playing contexts. But now with iTunes 11.0.1 the command consistently selects the currently playing track in that track's library regardless of its playlist source (if any). Coincidentally, this also happens to be the task performed by a script I wrote about to workaround the afore mentioned inconsistency.

I frequently find it convenient to access the playlist a track is playing from but "Show Current Song" doesn't do this any more. So here is a script that selects the currently playing track in its source playlist (the pre-iTunes 11 behavior). I'm guessing the reveal command was fixed because this didn't work quite right with iTunes 11, or maybe it had to do with those inconsistencies.

tell application "iTunes"

try

reveal current track

end try

end tell

Interestingly, the playlists list will become visible if it is not already and the correct track selected. The try block prevents an error in case the script is run while iTunes is not playing, in which case there is no current track property. Attach a shortcut. Option-Command-L might be a good one. (Shift-Command-L is used by the "Search With Google" Service.)

December 14 2012 - 7:09 pm

Dupin v2.5.4 Released

I've posted an update to Dupin. The latest is version 2.5.4 (however, for a brief time, v2.5.3 was available).

The latest update is a maintenance release with some minor fixes: clarifies cloud track detection information, better detection of misconfigured iApps.plist file, fixes issue in v2.5.3 whereby the Purge dialogs do not appear correctly on some systems.

December 13 2012 - 11:00 pm

Looks Like reveal Works Correctly

iTunes 11.0.1 appears to fix the issue with the AppleScript reveal command, mentioned here. But Command-L (Go to Current Song) apparently does not yet work correctly. Update: Go to Current Song/Command-L does work correctly. But it doesn't select the track in the playlist it may be playing from; it selects it in the Music library. This AppleScript will select the currently playing track in the playlist from which it is being played:

tell application "iTunes"

try

reveal current track

end try

end tell

December 13 2012 - 10:52 pm

iTunes 11.0.1 Released

Apple has released iTunes 11.0.1, an update that makes some fixes to AirPlay, iTunes Match, and provides the obligatory "stability and performance improvements".

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.