dougscripts.com

June 9 2015 - 11:42 am

A Word About El Capitan In Beta

As I pointed out last year when the first Yosemite beta was released:

I make no guarantees as to the reliablity of any software authored by me when operated under a pre-official-release beta version of the operating system.

10.11/El Capitan-compatible software will be clearly labeled as such if and when it is actually compatible. Otherwise, don't presume any script or app is compatible with El Capitan at all until the official release date in the Fall.

June 9 2015 - 7:22 am

Script of the Day: Quick Convert

Quick Convert will convert all or just the selected tracks of the selected Playlist using your choice of available iTunes encoders, restoring your Preferences-set encoder afterwards.

Quick Convert

Additionally, you can:

  • Choose to delete and/or Trash the original tracks and/or files
  • Copy all converted/imported tracks to a new playlist
  • Optionally save AAC encoded tracks as M4B "bookmarkable" and re-add the converted files to the Audiobooks (Books) library

More information and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

June 8 2015 - 6:37 am

Script of the Day: Save Album Art as folder.jpg

Save Album Art as folder.jpg will export the artwork of the selected tracks or tracks in the selected playlist as a JPEG image file named folder.jpg to the folder which contains each selected track's file—presumably the track's Album folder.

Many third-party music players and systems (Sonos, for example) may look for a "folder.jpg" here to use as display artwork. If multiple album tracks are selected, the script will make sure only one image file per Album is exported.

More information and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

June 5 2015 - 6:28 am

Script of the Day: Search Results to Playlist

Search Results to Playlist will 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. Conveniently floats over iTunes while active for easy access.

More information and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

June 4 2015 - 6:31 am

Script of the Day: New Last Played Date

New Last Played Date will set the Last Played or Last Skipped date of each selected track to a new date.

New Last Played Date

There are also options to increase or decrease Plays or Skips and to re-set those tags to no date and no Plays or Skips.

More info and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

June 3 2015 - 6:04 am

Script of the Day: Merge-Delete Playlists

Merge-Delete Playlists will allow you to merge the track contents of two or more playlists or delete any number of playlists at once, including Smart, Genius, and Playlist Folder playlists.

Merge-Delete Playlists

The merge feature will prevent the same tracks that may appear in different source playlists from being duplicated and has an option to delete original playlists. The delete feature only deletes the playlist; tracks, of course, remain in the library.

More info and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

June 2 2015 - 6:31 am

Script of the Day: Lyrics to TextEdit

Lyrics to TextEdit copies the text from the lyrics tag of the currently playing track--or if no track is playing, the selected track(s)--to a new TextEdit document. If a track's lyrics tag is blank then it will be skipped.

More info and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

June 1 2015 - 6:11 am

Script of the Day: Convert and Export

Convert and Export will convert the files of the selected tracks in iTunes using an encoder of your choice on-the-fly (restoring your Preferences-set encoder afterwards). The newly converted files are then moved to a new location of your choice, and their tracks removed from iTunes.

More info and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

May 31 2015 - 10:42 am

Check For Library Corruption With xmllint

A Correspondent recently reported that a script which needed to read the current "iTunes Library.xml" file was failing. This XML file, as you may know, is exported periodically by iTunes and is pretty much an abridged output of the actual iTunes database. Even the XML file exported by iTunes' File > Library > Export Library... command was unable to be read. This suggested that there might be some corruption in the track entries, (I recently had a similar report and that database contained corruption that prevented the XML from being exported; the user reported that the XML had last been updated in 2012.)

iTunes can seem to behave normally even if there are tracks with corrupted track entry data or corrupted metadata in their files. So you might not even be aware of corruption until a third-party appliance elicits errors.

There is a command-line tool called xmllint that can find some corruption in the "iTunes Library.xml". You can run it from Terminal, or in a script like this:

set f to choose file

set rez to (do shell script "xmllint --valid --noout " & quoted form of POSIX path of (f as text))

This will error when it finds some badly encoded or improper UTF-8 text, which is often the culprit. Then it's just a matter of finding the troublesome tracks in iTunes and fixing the problems if possible. Usually this means just editing the tags in iTunes.

May 29 2015 - 6:38 am

Script of the Day: Size of Artwork

Size of Artwork will display the size (width x height) of the artwork of the single selected track.

Size of Artwork

This script works great when assigned a shortcut.

More info and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

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