dougscripts.com

September 16 2017 - 11:26 am

Considerations When Updating to High Sierra

If you perform a clean install of the operating system, an "iTunes" folder will not be created in the user "Library" folder nor the local "Library" folder (the one at the top level of the startup disk). This has been the case since at least macOS 10.12.2.

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:

For all users of the machine: [startup disk]/Library/iTunes/Scripts/

For a single user: [startup disk]/Users/[user name]/Library/iTunes/Scripts/

(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.

Don't 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/

For a single user: [startup disk]/Users/[user name]/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:

This is a Compiled Script

...and application scripts (or applets) have this icon:

This is an Applet

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 Finder's Toolbar rather than from one of the Script menu locations.

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