dougscripts.com

Popular Now

Compare Two Playlists

downloaded 8m 34s ago

Compare Two Playlists v3.3

For iTunes List tracks common or exclusive to two playlists

downloaded 1h 45m 38s ago

Search YouTube v2.0

For Music Search YouTube using tag info from selected or playing track

Search Discogs

downloaded 1h 45m 49s ago

Search Discogs v1.1

For Music Use info from playing or selected track as basis for Discogs search

Trackographer

downloaded 1h 51m 13s ago

Trackographer v7.0

For Music Log info about playing tracks to text file

downloaded 2h 51m 32s ago

Move Playlists to Folder v2.3

For iTunes Move selected playlists to a new or existing folder

Move Playlists to Folder

downloaded 2h 55m 14s ago

Move Playlists to Folder v4.3

For Music Move selected playlists to a new or existing folder

Welcome!

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

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 macOS and many popular applications can be automated using AppleScript scripts. Scripts written for Apple's Music, TV and iTunes apps can manage files and track information, create playlists, interact with other applications, perform innovative tasks, and handle many kinds of chores with accuracy and precision 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.

Check back often or follow me on Twitter @dougscripts, my YouTube channel, 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:

RSS ROOLZ! SUBSCRIBE!

January 8 2022 - 6:36 pm

UPDATED: Rate Me! Rate Me! v6.5

This stay-open applet watches your playing tracks and when one begins playing displays a notification-sized panel whereby a Rating, Love and/or Dislike for the track can be entered. Features options to display only unrated playing tracks and timer preferences for how soon and how long the panel is displayed.

While you could easily rate the current track from the Music app's icon in the Dock, this script interrupts you and compels you to do so.

Latest version:

  • Compiled as Universal
  • Fixed issue causing laggy timing on some systems
  • UI and performance enhancements

More information for Rate Me! Rate Me! v6.5 and download link is here.

January 8 2022 - 3:57 pm

UPDATED: Divvy Up A Playlist v3.0

This script will copy the tracks of a selected user-created playlist to a series of new, smaller playlists each set to a maximum time length or maximum track length and each named with a user-supplied base name and number suffix incremented sequentially. Additionally, the new playlists can all be moved to a new Playlist Folder. Tracks can be distributed in Playlist Order, Current Sorted Order or Randomized.

Latest version:

  • Compiled as Universal
  • Adds "maximum tracks" option
  • UI and performance enhancements

More information for Divvy Up A Playlist v3.0 and download link is here.

January 4 2022 - 7:16 pm

NEW: Albums Amiss v1.0

This script uses track information to calculate whether a particular batch of tracks with the same Album title represent an incomplete or over-complete album, with either too few or too many requisite album tracks. Such batches will be copied to a discrete results playlist where they can be examined. The entire Music library or an individially selected Smart playlist can be scanned. (To be clear: the script does not check some kind of online database; it uses the extant local track entry information. Thus, tag accuracy is essential.)

More information for Albums Amiss v1.0 and download link is here.

January 1 2022 - 3:17 pm

UPDATED: Search Wikipedia v3.2

Performs a "Go" search of Wikipedia (like Google's "I'm Feeling Lucky") in your default browser using the Song Title, Album, Artist, or Composer tag of the single selected or currently playing Music track. OR if a radio stream is currently playing and the provider has formatted the stream title correctly, such that Artist - Song Title is displayed, the script will do a Wikipedia search for the Artist name.

Latest version:

  • Maintenance update
  • Accommodations for macOS 12 Monterey

More information for Search Wikipedia v3.2 and download link is here.

December 31 2021 - 11:21 am

UPDATED: Move Playlists to Folder v4.3

This script will move the batch of playlists you select to a new or existing Playlist Folder. Additionally, plain Playlists can be extricated from Folders to the top level and new Playlist Folders can be created containing a selection of Playlists.

Latest version:

  • Fixes bug whereby right panel may not populate correctly
  • v4.2 (December 29, 2021):
  • Officially compiled as Universal
  • Commensurate improvements for M1 Macs
  • Adds move to Top Level routine

More information for Move Playlists to Folder v4.3 and download link is here.

December 30 2021 - 3:42 pm

UPDATED: Artist to Last-First v5.6

This applet will parse the text of the chosen tag (Artist, Album Artist, Composer or one of their Sort siblings) of a selection of tracks:

Move the LAST word of the tag to the beginning, eg:

  • Hound Dog Taylor -> Taylor, Hound Dog
  • OR Move the FIRST word of the tag to the end, eg:

  • The Crystal Method -> Crystal Method, The
  • Then, the newly configured text can be copied back to your choice of Artist, Album Artist, Composer, Sort Artist, Sort Album Artist and/or Sort Composer tag(s).

    Latest version:

    • Officially compiled as Universal
    • Commensurate improvements for M1 Macs

    More information for Artist to Last-First v5.6 and download link is here.

    December 29 2021 - 5:13 pm

    UPDATED: Move Playlists to Folder v4.2

    This script will move the batch of playlists you select to a new or existing Playlist Folder. Additionally, plain Playlists can be extricated from Folders to the top level and new Playlist Folders can be created containing a selection of Playlists.

    Latest version:

    • Officially compiled as Universal
    • Commensurate improvements for M1 Macs
    • Adds move to Top Level routine

    More information for Move Playlists to Folder v4.2 and download link is here.

    December 26 2021 - 5:05 pm

    System Events Error and the Fix

    It can happen that Accessibility permissions you have previously given an applet are lost. In such a case, you may see this message:

    System Events got an error: 'Some Applet' is not allowed assistive access. (-1719).

    Here's how to fix it.

    1) Quit the applet

    2) Open System Preferences > Security & Privacy > Privacy and click on Accessibility in the left sidebar.

    3) Look for the name of the applet in the list. If it's checked, UN-check it, wait a moment* and then check it again. Launch the applet.

    (*I cannot emphasize enough how important it is to WAIT. It may appear as though your clicks are not working. Just wait.)

    4) If this does not work: quit the applet. Go back to Accessibility in System Preferences.

    5) Use the minus button to remove the applet from the list.

    6) Launch the applet. Eventually it will appear again in the Accessibility list. Make sure it gets check marked.

    7) If this does not work: quit the applet. Delete the applet from the list as in 5) but this time drag the applet from the Finder into the list. Go to 6).

    One of these methods will eventually work. It's a fragile thing for some reason.

    December 26 2021 - 2:46 pm

    UPDATED: Remove n Characters From Front or Back v7.1

    This script will delete a specified number of characters from either the beginning or the ending of the Title, Album, Album Artist, Artist/Director, Category, Comments, Composer, Episode ID, Grouping, Show (or their "Sort" siblings), Movement or Work tag of each selected track. For example, delete the initial digits and the space from "01 First Track", "02 Second Track", and so on.

    Latest version:

    • Officially compiled as Universal
    • Commensurate improvements for M1 Macs

    More information for Remove n Characters From Front or Back v7.1 and download link is here.

    December 26 2021 - 2:21 pm

    UPDATED: Find Empty Media Folders v3.1

    This applet will traverse the Media folder looking for and displaying any sub-folders that are either empty or that do not contain Media-apps-playable media, such as text or image files.

    Also see Media Folder Files Not Added.

    Latest version:

    • Officially compiled as Universal
    • Commensurate improvements for M1 Macs

    More information for Find Empty Media Folders v3.1 and download link is here.

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