Archive for the ‘AppleScript’ Category

October 6 '09 - 9:54 am
UPDATED: Import iPod Audio Files v3.0

Import iPod Audio Files copies the files of the selected iPod tracks to your iTunes Music/Media folder and then adds them to iTunes. Additionally, you can assign the new tracks to their own playlist. Requires the iPod be set to “Manually manage music and videos”.

Will not work on Windows-formatted iPods.

Not compatible with iPhone/iPod touch.

Not recommended for large-scale iPod audio recovery operations.

This latest version is a maintenance release that fixes a problem locating files and has a re-designed progress indicator.

October 1 '09 - 10:00 am
NEW: Make Add-to-Playlist-Droplet

After posting Drop to Playlist recently, I went crazy for the droplets. This new script, Make Add-to-Playlist-Droplet, will create AppleScript droplets that perform a function similar to iTunes 9’s “Automatically Add to iTunes” folder but for individual playlists. Simply select a playlist and run the script to create a droplet that references the selected playlist. Once such a droplet is created, drag-and-dropping files to its icon in the Finder will add the files to your iTunes library and copy the new tracks directly to the playlist that the droplet references. The script will allow you to create as many droplets for as may playlists as you like.

September 30 '09 - 8:41 am
UPDATED: Embed Artwork v2.0

I’ve updated Brian Webster’s Embed Artwork as universal binary, but otherwise there are no changes. This script simply re-embeds artwork into the files of the selected tracks. Handy for ensuring that artwork data travels with a file.

September 29 '09 - 9:47 am
UPDATED: I Hate That iTunes Done Chime! v2.0

OK. I suppose I don’t actually hate it. But you might find it convenient to change the “done” chime that sounds whenever you import or convert files in iTunes. I Hate That iTunes Done Chime! v2.0 will let you select a new sound to replace “boodely-OOP!” — which is actually named “complete.aif”. You can choose from any of the default system sounds (ping, sosumi, submarine, and so on), no sound, or your own AIFF sound file.

This latest version is simply a maintenance release and is saved as universal binary.

posted in AppleScript, Miscellaneous, Updates, iTunes

September 25 '09 - 7:35 am
NEW: Drop to Playlist

If you like the “Automatically Add to iTunes” folder that is created with iTunes 9, which allows you to drop files to it to add to iTunes, you may like Drop to Playlist. This is a droplet that will add files dropped on it to your iTunes library and then copy them to a specific user playlist that you set in the droplet’s preferences. The preference setting is accessed by double-clicking the droplet, and can be changed when required. Handy when placed in the Finder toolbar or sidebar.

posted in AppleScript, Managing Files, New Releases, iTunes

September 23 '09 - 10:33 am
Rosetta Redux

As you may know: to run AppleScripts that were compiled on a PowerPC machine on Intel machines (and therefore Snow Leopard) requires Rosetta—an optional install on your SL install disc. While Rosetta is a fairly small install, some people have expressed an interest in staying Rosetta-free. There are quite a few of these types of AppleScripts here on the site and I’m working on updating them to Universal Binary (although a good percentage of these in the Retro Scripts category probably won’t be updated by virtue of being obsolete). Long-time visitors may also have some of these scripts in their collections.

While you could wait for me to update these kinds of scripts to UB—disclosure: one of these days I will get around to admitting that I am a notorious procrastinator—you can update these scripts yourself by doing what I would do: open the script in AppleScript Editor, noting whether it is a compiled Script (.scpt) or an Application (.app), and re-save it. It will be re-compiled for your machine type, and if it is an Intel machine, will run without Rosetta. The “Run Only” and “Startup Screen” checkboxes can be left unchecked. Script Applications that use idle handlers need to be checked “Stay Open”.

During the Save, if AppleScript Editor informs you that the “Document Format is Read Only: This script application is in a format that is no longer supported…”, the case for non-bundled applications compiled pre-SL, just click the “Save As” button, and proceed with the save. In Snow Leopard, single-file-type apps are no longer supported. The defacto Application type is a bundle.

The AppleScript Release Note: 10.6 Changes page at Apple has more on this.

posted in AppleScript, AppleScript Editor, Rosetta, Snow Leopard, Tips and Info

September 23 '09 - 7:17 am
NEW: Dumb Down Genius Mix Playlist v1.0

Dumb Down Genius Mix Playlist will copy the tracks of a playing Genius Mix playlist to a new “dumb” (regular) playlist, which, for example, can be copied/sync’d to older iPods that do not accommodate Genius Mixes. You can subsequently copy the contents of additional Genius Mix playlists to the new playlist, refill it, or create more. (Each Genius Mix playlist only references about 70 tracks maximum, which is why you may have several, say, “Rock Mix” playlists.)

Thanks to Correspondent Pedro Espinosa for coming up with the basic work for this clever script.

posted in AppleScript, Managing Playlists, iTunes

September 22 '09 - 1:06 pm
UPDATED: PDF Adder v3.0

PDF Adder v3.0 is a collection of three AppleScripts that assist with adding PDF files to iTunes as “digital booklet” PDF tracks. Each provides a method for easily supplying Artist and Album tag data which is then applied to the newly-added PDF track:

This latest incarnation has been updated for Leopard/Snow Leopard. The last update was in 2006.

posted in AppleScript, Managing Files, iTunes

September 16 '09 - 9:58 am
UPDATED: CDDB Safari Kit v3.1

These two AppleScripts, “CDDB Safari” and “CDDB Tracks to iTunes via Safari”, assist in finding and retrieving Album track information, Album, Artist, and Year from Gracenote’s CDDB website using Apple’s Safari browser. CDDB Safari Kit v3.1 addresses some minor changes in Gracenote’s page formatting.

posted in AppleScript, Internet, Managing Track Info, Updates, iTunes

September 16 '09 - 8:51 am
Get Current Track from iTunes LP

When you’re playing an iTunes LP the Command-L shortcut to reveal/select the track in iTunes doesn’t work. Unless.

Place the iTunes LP “booklet” in its own playlist (select it and press Shift-Command-N) and open that playlist in its own window by double-clicking the name of the playlist (or choose “Open in New Window” by Control-clicking the playlist name). Double-click the booklet to open the iTunes LP in the playlist window just opened. Now you have access to the main iTunes browser while the iTunes LP stuff is playing in the separate window.

This script will emulate the Command-L shortcut providing the iTunes LP is in a separate window:

tell application "iTunes"
	if player state is stopped then return
	set pID to (get current track's persistent ID)
	set mLib to (some playlist whose special kind is Music)
	reveal (some track of mLib whose persistent ID is pID)
end tell


posted in AppleScript, Tips and Info, iTunes9

This column is printer-friendly.
Site contents © 2001 - 2010 Doug Adams and weblished by Doug Adams, dougscripts AT mac DOT com.
All rights reserved. Legal.
AppleScript, iTunes, and iPod are registered trademarks of Apple Inc.
Image 01 Image 01 Image 01 Image 01 Image 01 Image 01 Image 01 Image 01 Image 02 Image 03 Image 03 Image 03 Image 03