Académique Documents
Professionnel Documents
Culture Documents
com
Welcome!
Download hundreds (471 and counting) of AppleScripts for Apple's iTunes that will help
make managing your digital music collection easier and more fun!
Popular Now
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.
Do not confuse this iTunes folder with the one created in Music, which stores iTunes support
files. The iTunes folder in the Library folder originally contained an iTunes Plug-Ins folder as
well as the Scripts folder. Apple no longer allows third-party visualizer plug-ins (I believe;
although the built-in visualizers still work), so the plug-ins folder is apparently unnecessary. But the
Scripts folder is still checked by iTunes for AppleScript files to display in its Script menu.
Thus, you may have to create these folders yourself. (But only after a clean install. If these folders
already exist and you simply update your OS or transfer from a backup post-install then the folders
will remain or be restored.) Below are listed the pertinent file paths, with the folders you may need
to create emphasized:
(The user Library folder is hidden by default, but most nerds I know immediately make it visible:
Select your home folder and open it in a Finder window. Click View > Show View Options in the
Finder Menu or press Command-J. At the bottom of the View Options panel, check-mark the Show
Library Folder checkbox.)
Additionally, you can assign keyboard shortcuts to scripts that appear in the iTunes Script menu.
Dont forget that the system-wide Script menu, which appears on the right side of the Menu Bar,
can also be configured to display scripts that are associated with any frontmost application. Thus,
when iTunes is frontmost it can display the appropriate iTunes AppleScripts:
Folders for the system-wide Script menu must be set up like so:
For all users of the machine: [startup disk]/Library/Scripts/Applications/iTunes/
You can create AppleScripts for many other Apple and third-party applications and place them here
as long as the final folder name matches the name of the application (Photos, MarsEdit, Safari, and
so on).
Now, there are essentially two kinds of scripts, compiled scripts and application scripts. Compiled
scripts have this icon:
Compiled scripts can only be launched from the Script menu (or other third-party launcher). And
while applets can be conveniently launched from the Script menu, they can just as well be
launched from any location in the Finder by double-clicking them. Sometimes it may be easier to
launch an applet from an easy-to-access folder or from the Finders Toolbar rather than from one of
the Script menu locations.
S e p t e m b e r 1 3 2 0 1 7 - 8 : 1 6 a m
S e p t e m b e r 1 3 2 0 1 7 - 7 : 0 3 a m
try
set currentText to (get thePlaylists description)
if currentText is missing value then set currentText to ""
on error
return
end try
try
set newDescription to text returned of
(display dialog "Enter description:" default answer currentText
with title (get thePlaylists name))
tell thePlaylist to set description to newDescription
on error
return
end try
end tell
Open this in Script Editor by clicking the little script icon. Save it named whatever you like as a
Script (.scpt) in your ~/Library/iTunes/Scripts/ folder so that it will be listed in the iTunes Script
menu. Its a great candidate for a keyboard shortcut.
Unfortunately, while you can manually edit the description for a Playlist Folder, AppleScript hasnt
caught up. Im hopeful this will be added to a future version.
posted in iTunes 12.7
S e p t e m b e r 1 2 2 0 1 7 - 8 : 3 4 p m
I suspect youll be hearing (or making) some complaints about the iOS apps and Ringtones
changes.
S e p t e m b e r 1 2 2 0 1 7 - 8 : 4 0 a m
TrackSift 2 Updated
Over the weekend, Apple approved and posted my update to TrackSIft 2. This latest version fixes
a problem some users were seeing with the Tracks Without Lyrics tool that prevented the tool
from recognizing accessible tracks. Ive gotten several reports from users that this is successfully
patched.
You can get more information about TrackSift 2 on this page and download it from the Mac App
Store.
posted in TrackSift
S e p t e m b e r 8 2 0 1 7 - 1 2 : 5 3 p m
posted in Podcasts
S e p t e m b e r 5 2 0 1 7 - 1 : 0 6 p m
try
delete (every playlist whose name is newPlaylistName)
end try
set newPlaylist to (make new playlist with properties
{name:newPlaylistName})
end tell
Open this in Script Editor by clicking the little script icon. Save it named whatever you like as a
Script Bundle in your ~/Library/iTunes/Scripts/ folder so that it will be listed in the iTunes Script
menu. Launch the script and enter a name for the playlist; the default is Multi-artwork tracks;
press OK.
S e p t e m b e r 3 2 0 1 7 - 1 0 : 0 5 a m
Ive already started releasing updates to scripts and Ill be releasing more regularly over the
next few weeks. There are only minimal obligatory changes and accommodations to make. Most
current scripts should run OK in High Sierra. But there are some optimizations I can take
advantage of in macOS 10.13, thus the updates.
This is probably a good place to note once again that a clean install of macOS 10.12 and later
may not create a iTunes folder in the user Library directory. Scripts installed in
~/Library/iTunes/Scripts/ will appear in the iTunes Script menu; you may have to create the
intermediate folders yourself.
A u g u s t 3 1 2 0 1 7 - 8 : 4 1 a m
I know some iTunes users like to store their libraries in Dropbox (which I dont think is a great idea,
but there it is) so if youve got media files on an older machine using Dropbox you may want to
move that stuff out of there.
A u g u s t 2 7 2 0 1 7 - 1 : 2 0 p m
I also had a look at a problem with capitalizing words if they followed a colon (:). I think most
conditions are covered. Essentially, if a word follows a colon, its capitalized no matter what.
Proper English Title Capitalization is free to use with a donate nag and thanks for your support!
More information and download is on this page.
2001 - 2017 (that's right: 2001) Doug Adams Contact support AT dougscripts DOT com. All rights reserved. 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.