dougscripts.com

September 12 2011 - 9:37 am

NEW: Play in Album Context

You can probably imagine that I hear a lot of unusual ideas for creating workflows for iTunes with AppleScript. Quite a while ago someone suggested a script that could be run when a track was playing that would find all the tracks of that track's album, put them in track order in a new playlist, and then play them in order starting from the original selected track. For example, "Time" from Dark Side of the Moon comes up and you want to hear "The Great Gig in the Sky", "Money", etc, in their album context.

But really. How many people ever want to do that? Well it turns out that the more I thought about how quirky a suggestion it was the more often I began noticing opportunities where I'd like to do the very thing. So I caved and wrote Play In Album Context.

If you select a track and then launch the script a new playlist will be created from the tracks of that track's album (actually, tracks that have the same Artist, Album, and Disc Number tags—whether that results in gathering the correct tracks for the album depends on how well you've tagged your tracks) and the selected track will begin playing from its album position in the playlist.

If a track is playing and the script is launched, the album playlist is created as described above, and the current track will continue playing from its album position in the new playlist. The trick of the script is to temporarily set the playing track's bookmarkable property, pause iTunes, and then immediately play the same track in the playlist; the track picks up playing from the bookmark set when the track was paused. There is a slight stutter when this transfer occurs, but if the goal is to hear the succeeding tracks in album context, it's probably a small inconvenience to bear.

September 10 2011 - 9:49 am

Key Code Searching

Here's a snippet I've been using for awhile which I just got around to posting on the key codes page. I keep my iTunes Column Browser set with Artists and Albums listed On Left. Whenever I'm looking for a particular album I run this script to select the Music library and put focus on the Search box:

tell application "iTunes"
	activate
	-- select the Music library
	reveal (some playlist whose special kind is Music)
end tell
tell application "System Events"
	-- bring focus to Search box - Command-Option-F
	key code 3 using {command down, option down}
end tell


I've given it a keyboard shortcut of Command-Option-S.

More information on AppleScripting iTunes with key codes and keystrokes is here.

August 22 2011 - 8:15 pm

iTunes 10.4.1 Available

Apple released iTunes 10.4.1 today.

Despite what the release notes mention about addressing "issues with adding artwork to songs and videos", I was unable to get album artwork to display as a track's file's Finder icon. Personally, I don't care if this is a bug or a feature. But I know it really annoys a lot of people.

August 15 2011 - 11:47 am

UPDATED: Remove n Characters v4.2

Remove n Characters From Front or Back v4.2 adds a progress display during processing and provides the ability to preview each selected track.

August 15 2011 - 11:45 am

Join Together v6.1.2

Join Together v6.1.2 addresses an artwork-related issue that would cause a stall when adding the final file to to iTunes and fixes an issue with the shareware notice in Lion.

August 15 2011 - 10:28 am

Artwork Bug in iTunes 10.4 Lion, continued

Regarding this note about a possible artwork bug with iTunes 10.4: There are a couple of responses to a query I made about it at Macintouch. It seems like the image data will "travel" with a file, but simply will not display as a file's Finder icon in Lion.

August 14 2011 - 1:01 pm

UPDATED: Quick Convert 3.0

Quick Convert v3.0 will convert all or just the selected tracks of the selected Playlist using your choice of available iTunes encoders, restoring your Preferences-set encoder afterwards.

Works with importing selected CD tracks, too.

  • Choose to delete and/or Trash the original tracks and/or files
  • Copy all converted/imported tracks to a new playlist
  • Optionally save AAC encoded tracks as M4B "bookmarkable" and re-add the converted files to the Books library

This latest version consolidates all options into a single window and displays progress during track processing.

Quick Convert v3.0 is for OS X 10.6 or 10.7 only. Previous universal version for PowerPC machines available at the entry page.

August 11 2011 - 11:40 am

UPDATED: Merge-Delete Playlists v3.0

Merge-Delete Playlists v3.0 (formerly named "Batch-Delete Playlists") will allow you to merge the track contents of two or more playlists or delete any number of playlists at once, including Smart, Genius, and folder playlists. The merge feature will prevent the same tracks that may appear in different source playlists from being duplicated and has an option to delete original playlists. The delete feature only deletes the playlist; tracks, of course, remain in the library.
Very handy when assigned a keyboard shortcut.

This latest version is written as a Cocoa-AppleScript applet for OS X 10.6 or better; adds the merge feature.

August 10 2011 - 9:36 am

Artwork Bug in iTunes 10.4 Lion?

I hadn't had time to do much research on this because my head's been in other projects, but after some tests this morning it really looks like there is a bug with adding new artwork to tracks in iTunes 10.4 running under Lion. Perhaps this is old news for some. I've been getting various email reports of this, but no one ever has the same story, which makes it difficult to piece things together. The problem seems to be: while new artwork will display in iTunes, it does not travel with the file (eg, when copying to another Home Shared iTunes) nor does the Finder icon of the track's file display the artwork. Seems like the image data isn't being written to the file. Doesn't seem to be a problem with iTunes 10.4 in Snow Leopard, though. There's no homemade fix that I am aware of so we'll have to wait to see if Apple does something about it.

August 8 2011 - 8:21 am

NEW: Increment Number Tags v1.0

Increment Number Tags will incrementally number your choice of the Track Number, Episode Number, Episode ID tags, and track Name prefix of the selected tracks. Additionally, a Track Count can be applied to each track, Episode ID can be configured with additional text incorporating the number, and zero-padding up to three digits can be applied. (The selected tracks must be sorted by ascending Play Order for accurate results.)

Site contents © 2001 - 2025 (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.