dougscripts.com

AppleScript

September 30 2009 - 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 2009 - 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.

September 25 2009 - 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.

September 23 2009 - 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.

September 23 2009 - 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.

September 22 2009 - 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:

  • Add as PDF to iTunes is a PDF Service workflow that, when installed, will be available in the PDF pop-up menu of the Print Dialog. It allows you to save the current document as a PDF file (from any application that uses the Print Dialog) and add it to iTunes.
  • PDF Adder is an applet that will let you choose an existing PDF file and add it to iTunes. It can be installed in iTunes' Scripts folder for easy access from iTunes Script menu.
  • PDF Dropper is a droplet that lets you add a PDF file to iTunes by drag-and-drop.

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

September 16 2009 - 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.

September 16 2009 - 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


September 11 2009 - 9:17 am

Need More Sharing From Home Sharing?

If you find the new iTunes 9 feature "Home Sharing" a bit lacking then you may be interested in this remote management compendium I put together a few months ago. If you're ready to really get your hands dirty with things like ssh, rsync, launchd, and more, you can design a system to copy/backup/add any iTunes files to other iTunes apps on your network in the background.

September 10 2009 - 9:16 pm

UPDATED: Art to Desktop v2.1

This Stay-Open applet will continuously update your desktop picture to the album artwork of the currently playing track. Art to Desktop v2.1 is just spruced up to work better with Snow Leopard, other minor enhancements.

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.