dougscripts.com

Welcome!

Download hundreds (455 and counting) of AppleScripts for Apple's iTunes that will help make managing your digital music collection easier and more fun!

Popular Now

Super Remove Dead Tracks

downloaded 4m 31s ago

Super Remove Dead Tracks v4.3

Remove iTunes tracks disassociated from files

downloaded 24m 17s ago

Assimilate View Options v4.0

Recreate a playlist such that its visible columns mirror the Music library

Music Folder Files Not Added

downloaded 25m 17s ago

Music Folder Files Not Added v5.1

Displays files in iTunes Media folder not in iTunes track library

Save Album Art to Album Folder

downloaded 29m 2s ago

Save Album Art to Album Folder v5.3

Export artwork of selected tracks to parent or specified folder

Re-Apply Downsized Artwork

downloaded 30m 33s ago

Re-Apply Downsized Artwork v3.1

Resample selected tracks' artwork to user-set size limit

Albumize Selection

downloaded 31m 12s ago

Albumize Selection v2.1

Renumber order of selected tracks

What's AppleScript?

AppleScript is a simple Macintosh-only programming language that can control and automate actions on your Mac. AppleScript is already available on your computer as part of the Mac OS and many popular applications can be automated using AppleScript scripts. Scripts written for iTunes can manage files and track information, create playlists, interact with other applications, perform innovative tasks, and handle many kinds of chores which otherwise would be repetitive, laborious, and/or time-consuming.

Cool! Where Do I Start?

Start browsing the site by using the scripts ↓ Menu link above. AppleScripts are gathered into these general Categories:

Or use the search box at the top of every page to try and find something specific.

Not sure how to install AppleScripts? Here's a Download/Installation FAQ & Video.

Check back often or subscribe to my Twitter feed @dougscripts, my RSS blog feed and 30 Most Recent Scripts RSS to stay notified about new and updated scripts and info.

Latest:

August 27 2015 - 2:12 pm

UPDATED: Assimilate View Options v4.0 (and Some Gripes)

Assimilate View Options takes advantage of the iTunes behavior whereby a newly created playlist has the same visible columns as the Music library playlist. Select a playlist in iTunes and launch the script. That playlist will be re-created with the same columns available in its Songs View as are available in the Music library playlist.

This latest version will only work with iTunes 12.2 or later on OS X 10.10 or later. Because Things Are Different Now. An older version from 2012 is still available that will probably still work with pre-Yosemite/pre-iTunes12.2 versions.

Working on this script exposed me to some funny quirks with the latest version of iTunes. First, programmatically speaking, there is no way to tell the difference between a Genius and Smart playlist. In fact, (programmatically speaking) they appear as identical types. They both have a smart property set to true. Their playlist properties in the XML file both have Smart Info and Smart Criteria; and if this data for a Genius playlist is exported and re-imported, it does not produce a Genius playlist of tracks but just an empty Genius playlist. Buh?

Next, there is likewise no way to tell that a playlist downloaded from Apple Music (which will appear under a “Apple Music Playlists” header in—what used to be known as—the Source List) is such a thing. And if you duplicate it, the copy will appear with your regular playlists. Don’t use Assimilate View Options with these playlists.

And while I’m sort of griping here, must new playlists default to Playlist View as the initial view? I really like Playlist Views as an option and I’m all for cutting down on Preference Pane Clutter, too, but a popup with my favored initial view couldn’t take up that much space, could it?

Oh, and Santa? ‘Scriptable playlist description?

August 26 2015 - 1:19 pm

“10 things that iTunes does right”

Kirk lists ten things iTunes does right at Macworld.

I’m very partial to #10.

August 17 2015 - 6:29 am

NEW: Apps Assist

I’m pleased to announce the debut of Apps Assist, a utility application (it’s not a script) that can display the installed, missing and orphaned iOS apps on your Mac.

If you’ve been an avid downloader of iOS apps over the years and back them up via iTunes to your Mac but never had a look in your Mobile Applications folder, well, I shudder to think how many files you’ve got in there that may be outdated, duplicated, or abandoned. To my own surprise, I had over twice as many unused versions of apps in there than I had installed apps.

Apps Assist will help you easily determine which apps are viable and which you might consider sending to the Trash. In the screenshot above, the black colored iOS app listings are installed, the gray ones are missing (these appear iconless and gray in iTunes), and the blue ones are orphaned in the Mobile Applications folder—they’re just outdated or otherwise not installed. Apps Assist provides tools to filter and sort the apps list, Trash selected files, view selected apps’ .ipa files in the Finder, export the apps list as a tab-delimited text file, and more. Probably most handy is being able to see the Filenames and Purchaser IDs for each app.

Apps Assist requires iTunes 12.2 or later running on OS X 10.8 or later. It’s free to try with limited functionality and frequent nags urging you to purchase a registration code for $1.99, which will restore full functionality.

August 13 2015 - 2:57 pm

Hooray! Sort Of

Apple fixed the drag from Playlist View problem!

But they didn’t fix the current track in For You predicament or the drag from Audiobooks setback. So maybe these are not problems at all but just the way it’s going to be.

August 13 2015 - 2:40 pm

iTunes 12.2.2 Released

Apple has released iTunes 12.2.2 which fixes some Apple Music issues, some issues with sorting and displaying playlists and includes the obligatory improvements to overall stability and performance.

August 6 2015 - 9:27 am

UPDATED: Sort by Artwork Size v1.1

Sort by Artwork Size v1.1 can write the size of a track’s artwork (eg: “600×600″) to choice of Category, Comments, Description or Episode ID tag (enabling tracks to be sorted by artwork size in a playlist using the chosen tag) and/or copy tracks with artwork less than or greater than a user-entered size to a new discrete playlist.

Note that if choosing the first option, the chosen tag will be re-written so it is best to choose a tag that is not already in use or not typically associated with a track’s kind; for example, use the Episode ID tag (a TV Show tag) for music tracks or the Category tag (a Podcasts tag) for videos.

This latest version adds support for OS X 10.11 and accommodates changes in iTunes 12.2 and later.

Free to try for ten days, $1.99 thereafter. More info and download is on this page.

August 3 2015 - 10:37 am

UPDATED: Search Results to Playlist v2.1

Search Results to Playlist can search a chosen category (Library, Music, Movies, etc) or the selected playlist for user-entered text by All, Song, Artist, Album, or Composer tag and copy the track results to a Search Results playlist, which will be created automatically if necessary.

Search Results to Playlist

It can optionally re-create or append to the Search Results playlist on each run. Floats over iTunes while active for easy access.

This latest version has some minor fixes for compatibility with iTunes 12.2+ and accommodations for OS X 10.11 beta.

More information and download is on this page.

July 25 2015 - 2:34 pm

Get Asked This A Lot

“Do you have any scripts that work with iCloud Music Library/iTunes Match tracks? Like, to delete the cloud uploads and re-upload tracks?”

No. AppleScript cannot access anything in the cloud. Here’s one of the reasons why: While it’s certainly possible for me to write a script that arbitrarily deleted local tracks and files on your computer (with or without your knowledge), that’s OK because presumably you knew stuff was going to get deleted by running the script. It’s your responsibility, and Apple doesn’t care what you do on your machine. You could set in on fire if that’s what you wanted to do. Or install Flash. However, stuff in the cloud is Apple’s responsibility. And they have pretty much guaranteed you that your goods up there are safe. So they’re not going to let an AppleScript (of all things!) have arbitrary access to your goods in the cloud where it could potentially be a bad actor.

AppleScript can manipulate cloud tracks locally; for instance, copy such tracks to a new playlist or edit their tags. But anything to do directly with the cloud is strictly out-of-bounds.

July 25 2015 - 11:51 am

Site Issues Update

The site issues I mentioned previously are fixed. However, please don’t hesitate to contact me if you experience any problems on the site. I’m still tying up loose ends. Thanks for your patience!

July 22 2015 - 12:42 pm

Site Issues

The site is experiencing some issues. I may be moving to a new hosting server as a result. Please excuse any disruptions or anomalies.

Site contents © 2001 - 2015 (that's right: 2001) Doug Adams and weblished by Doug Adams, dougscripts AT mac DOT com. About.
All rights reserved. Legal.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no affiliation with Apple, Inc.