dougscripts.com

Welcome!

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

Popular Now

downloaded 23s ago

Make JPEG and PNG Playlists v2.0

Create two playlists containing tracks with JPEG and PNG artwork

downloaded 8m 9s ago

Swap Song Name and Artist v1.0

Swap the name with the artist of selected tracks

CD Text to CD Info

downloaded 9m 20s ago

CD Text to CD Info v4.3

Apply selected CD's CD Text to its disc and track tags

downloaded 15m 0s ago

Artist - Name Corrector v2.1

Correct song titles listed as "Artist - Song Name"

Tracks Without Embedded Artwork

downloaded 51m 43s ago

Tracks Without Embedded Artwork v1.5

Gather audio tracks whose files contain no artwork metadata

downloaded 53m 18s ago

Restore Artwork from Album Folder v3.2

Restore each selected track's artwork from an image file stored in its Album folder

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 follow me on Twitter @dougscripts or on Facebook, or subscribe to my RSS blog feed and 30 Most Recent Scripts RSS feed to stay notified about new and updated scripts and info.

Latest:

January 13 2017 - 10:46 am

The Next Track – Episode 35 – Peter Chilvers

Kirk and I are both fascinated with Brian Eno’s generative music app, Reflection. So we asked the developer, Peter Chilvers, to come on the show and talk about generative music and his other app collaborations with Brian Eno.

You can listen to the episode at The Next Track website here or subscribe here in iTunes.

December 23 2016 - 11:42 am

The Next Track – Episode 32 – DACs

Outboard DACs are a subject that we’ve been meaning to get to and so we invited Chris Connaker of Computer Audiophile to be our guest once again to explain everything we’d want to know about using a digital-analog-converter in an audio system.

We’re sponsored by WALTR 2: transfer virtually any media files to your iPhone, iPad, or iPod, without using iTunes. Save 15% on Waltr 2 with a discount code from The Next Track.

You can listen to the episode at The Next Track website here or subscribe here in iTunes.

December 17 2016 - 7:21 am

The Next Track – Episode 31 – Apple Music

Jim Dalrymple, long-time Mac journalist and founder of The Loop, recently wrote a critique of Apple Music and we asked Jim to elaborate on his experiences and thoughts with the service.

We’re sponsored by WALTR 2: transfer virtually any media files to your iPhone, iPad, or iPod, without using iTunes. Save 15% on Waltr 2 with a discount code from The Next Track. Seriously: check out WALTR 2.

You can listen to the episode at The Next Track website here or subscribe here in iTunes.

December 13 2016 - 2:47 pm

iTunes 12.5.4 Is Out

Apple has released iTunes 12.5.4, which appears to add support for the new TV app, Touch Bar on the MacBook Pro, and other minor fixes.

December 7 2016 - 9:34 am

M3Unify v1.5.0

M3Unify is a simple file managing app that can copy and arrange audio files to a selected folder, volume or portable media. Tracks can be dragged from iTunes or files can be dragged from the Finder. When loaded in M3Unify, a set of flexible exporting options enables you to arrange your music files the way you and your music player want.

With M3Unify you can:

  • Copy files of tracks dragged from iTunes or the Finder to a selected folder
  • Rename copied files using substitution patterns based on track tags
  • Create Album or Artist/Album sub-folders based on track tags
  • Export album artwork as “folder.jpg” files, one per Album sub-folder
  • Create an M3U playlist
  • Format M3U Extended track information using substitution patterns based on track tags
  • Optionally convert files to AAC files (or MP3 files via iTunes)

Plus, these features:

  • M3U preview
  • Track information and Quick Look auditioning
  • Uncluttered, easy-to-use interface
  • On-board and online help

This latest version adds the ability to drag Finder files; skip conversion if source files are already in the selected format; adds limited pattern matching for sub-folder creation (eg: [year]/[genre]); other enhancements and performace fixes.

M3Unify is $5, free for current registered users, video demo after the jump, download is on this page. (more…)

December 3 2016 - 5:20 pm

The Next Track – Episode 29 – Tagging Audio Files

We get around to talking about some tagging basics, mostly geared towards iTunes. Kirk reminds me about Option-space bar. I had the chance to mention a few AppleScripts for exporting artwork and my “Smarts” app for managing Smart playlists.

We’re sponsored by Drobo, simple to use storage arrays designed to protect your important data forever. Visit Drobo.com and be sure to listen to this episode for info on how to save 20 percent on your next Drobo purchase.

You can listen to the episode at The Next Track website here or subscribe here in iTunes.

November 27 2016 - 6:51 am

NEW: Display File Path

Essentially—and some might argue for either better or worse—iTunes is a file manager.
In fact, I usually will tell people to just forget about the files. Let iTunes deal with them. Most people will never need to examine the files inside the iTunes Media folder.

OTOH, I do all kinds of twisted things to tags and metadata and I often need to know how that may have affected the location of a file. Or sometimes I’ll need to know if a file is where I think it is or is still named what I thought it was.

This information isn’t handily available (although some Smarties will copy the file path to the Comments tag so it is viewable in the Comments column in the browser window). You can reveal a track’s file using iTunes’ “Show in Finder” command or see its file path in the Info window’s File tab, but this uses up valuable finger time. And the Info window is modal; you can’t run scripts when it’s visible.

So I made this simple stay-open applet that will monitor iTunes and display the file path of the single selected track.

The window is resizeable horizontally and the text is scrollable.

The Display File Path window will float alongside iTunes and whenever a single track is selected—and its file is accessible—the file’s path will be displayed. The displayed file path can be copied as text to the clipboard and the file can be selected in the Finder. There’s also an option to show the file paths of each playing track instead of the single selected track.

Obviously, it’s only useful for occasional special jobs but I’ve been finding it handy when the need has arisen. It’s free to download and use with a donation nag and is available here.

November 19 2016 - 11:06 am

Refresh Smart Playlist Scripts

I still like me them Smart Playlists, arguably one of the best features of iTunes. I mostly use them for organizing and sorting purposes. For example, I have a bunch that segregate tracks by various iCloud Status. But I also maintain a handful that I actually play. And sometimes it’s advantageous to refresh them by removing all their tracks and letting them repopulate with different tracks. These sorts of Smart Playlists use “Live updating” and “Limit to” settings in their criteria—iTunes will prevent the removal of tracks from a Smart Playlist if it contains all the tracks from the library that meet its criteria.

Anyway, here’s one new and one updated script to assist with refereshing Smart Playlists:

Refresh Selected Smart Playlist v1.0 will remove the tracks from a single Smart Playlist selected in iTunes. It works effortlessly when you assign it a keyboard shortcut.

Refresh Smart Playlists v2.0 has been resurrected from a version I had abandoned. It’s an applet that will display all the user-created Smart Playlists in iTunes so you can select the ones you want to batch-refresh:

Both are free to download and use, but a donation for my efforts will always leave you with a satisfied feeling afterwards.

November 18 2016 - 8:40 am

The Next Track – Episode 27 – Paul Englishby

Kirk and I wanted to find out what writing music for soundtracks was all about and so our guest for this episode is UK composer Paul Englishby. You may not have heard of him but you certainly may have heard his music, which he writes for TV, film, and stage. His latest project was composing the music for a high-tech production of “The Tempest” being staged by the Royal Shakespeare Company. He also does the music for the British TV shows “Luther” and “The Musketeers”, both of which are favorites at my house.

You can listen to the episode at The Next Track website here or subscribe here in iTunes.

November 16 2016 - 6:52 pm

Sal Soghoian

According to several sources, including MacStories, Sal Soghoian’s position as Product Manager of Automation Technologies at Apple has been terminated. Sal oversaw AppleScript, Automator, JavaScript, Terminal and like-technologies.

Before we get all crazy, it is Sal that is no longer at Apple. The technologies remain. Let’s hope it stays that way.

Sal is a great guy. I’ve met him and chatted with him numerous times. He’s been evangelizing AppleScript since the System 7 days when he caught the AppleScript fever through his desktop publishing work with Quark. He always paid thoughtful attention to me and my site. He once told me he would make a point of showing my site to Apple engineers as an example of the power and public popularity of AppleScript.

Meanwhile, I am optimistic about the future of desktop automation on the Mac. I guess I have to be.

UPDATE: Sal has written some thoughts about this at his website. Most importantly:

“Seriously, if you have any questions or concerns about the future of user automation, ask Apple. If user automation technologies are important to you, then now is the time for all good men and women to reach out, speak up and ask questions. The macOS user automation technologies include: UNIX CLI (shell, python, ruby, perl), System Services, Apple Events (JavaScript, AppleScript, AppleScriptObj-C, Scripting Bridge), Automator, Apple Configurator (AppleScript, Automator), and Application scripting support in Photos, iWork, Finder, Mail, and other Apple applications.”

“Other Apple applications.” Like iTunes.

Site contents © 2001 - 2017 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Legal.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
One who says "it cannot be done" should not interrupt one doing it.