dougscripts.com

Archive for the
‘Managing Track Info’ Category

May 18 '16 - 7:12 am
Reset Plays MIA

Looks like the “Reset Plays” command is MIA in iTunes 12.4. Here’s a script that will reset the played count of each selected track to 0 and remove its played date.

tell application “iTunes”

set sel to selection

if sel is {} then return — nothing selected

repeat with thisTrack in sel

— use try blocks to fail gracefully if problem

try

set thisTrack’s played count to 0

end try

try

set thisTrack’s played date to missing value

end try

end repeat

end tell

Click on the script icon to open this in Script Editor on your machine. From Script Editor’s File menu, click “Save…”. In the Save Panel, enter a name for the script, like “Reset Plays”, and save it to your [username]/Library/iTunes/Scripts/ folder (if no “Scripts” folder exists, create one). Once saved to this folder, the script will appear in iTunes’ Script menu. To use, select the track(s) in iTunes whose plays you want to reset and then choose the “Reset Plays” script in the Script menu.

Alternatively, you can use Add or Subtract Play Count, New Last Played Date, or New Play Count. Each has some capacity to change a track’s Plays.

There still seems to be a bug regarding changing the Plays of Matched/Uploaded tracks in the cloud, whereby the played count reverts to whatever it was before being “artificially” set with AppleScript (or other means). I couldn’t say if that issue is related to the disappearance of “Reset Plays”.

February 7 '16 - 12:44 pm
UPDATED: Album Rating Reset v2.0

Album Rating Reset will allow you to set the Album Rating and/or Album Loved for the albums of the selected tracks or the albums associated with the tracks in a selected playlist.

Album Rating Reset

I had pretty much given up on Album Ratings as just more Songs View clutter. I’d hidden the Album Rating column in Songs View. When there’s no avoiding it in Album Views I prefer the computed Album Rating that averages the album’s track ratings. But now that I use Apple Music fairly regularly, the Loved settings for tracks, albums and playlists in my library actually work pretty well with shaping Apple Music recommendations.

So I updated Album Rating Reset from a version last updated in 2007 to include Album Loved. The older version would only work on one track a time. But this version works on the selected tracks’ albums or the albums associated with the tracks in a selected playlist. I don’t think there is a way in iTunes to apply an Album Rating or Album Love to multiple albums at a time except while in Albums View.

Album Rating Reset

More information and download is on this page.

November 12 '15 - 8:40 am
NEW: Rating Notify

I used to be pretty good about maintaining my tracks’ Ratings. But I have lapsed. I used to use my applet Rate Me! Rate Me! to encourage me to rate tracks as they were playing. But I haven’t updated that in a few years and, really, it was conceived before Notifications became available.

And while iTunes Notifications are fine, they don’t display the Rating for the track. So I had to roll my own.

Rating Notify is a simple applet that runs in the background and when iTunes plays a Music track it dispatches a Notification displaying the track’s Name, Artist, Album, Artwork and Rating. The script can also be set to only show Notifications for tracks without a rating. The tracks in these Notifications, for example, have not been rated:

Clicking the Notification reveals the track in iTunes’ Music library so you can work on it—or you could use the iTunes Dock menu to rate it (tracks cannot be rated from the Notification, if that’s what you were wondering). Additional options can be set via System Preferences: When the alert style in System Preferences > Notifications for the applet is set to “Banners”, Notifications will self-dismiss; when set to “Alerts” each Notification will remain posted until it is user-dismissed, as in the screenshot above.

For iTunes 12 and later/OS X 10.10 and later. More information and download is here.

July 10 '15 - 8:10 am
UPDATED: Multi-Item Edit v4.3

Multi-Item Edit v4.3 will allow you to edit most tags (and some additional options) of the selected track(s) in a single floating window using single-edit mode (one selected track) or multi-edit mode, which emulates the pre-iTunes 12 “multiple items” format; that is, a checkbox adjacent to each tag allows you to select which changes are to be applied to the selection’s tags.

Multi-Item Edit v4.3

This latest version adds support for iTunes 12.2 including the new “Loved” (or “Likes”, I suppose) rating tag. I removed the “Album Rating” tag setting to make room for “Loved”, but “Album Rating” was proving difficult to reliably compute when tracks were from disparate albums. I don’t think it will be missed. You’ll also be able to edit tags when a selection of tracks contains more than one kind of media.

This update is free for registered users. New users can try it free for 10 days; it’s $1.99 thereafter.

More information—including video—and download is on this page.

June 29 '15 - 6:56 am
Script of the Day: Artist to Last-First

Artist to Last-First 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).

    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 26 '15 - 6:29 am
    Script of the Day: Sundry Info to Comments

    Sundry Info To Comments copies your single choice of filename, file path (location), file’s parent folder path, file creation date (YYYY-MM-DD HH:MM:SS), current playlist, volume adjustment, start time or stop time (HH:MM.SS), artwork size (WxH), purchaser name or purchaser account ID to choice of Category, Comments, Description or Episode ID tag of each selected track.

    Sundry Info To Comments

    By putting data in one of these available tags it can be visible and sortable or used with Smart Playlist criteria.

    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 20 '15 - 11:36 am
    UPDATED: Multi-Item Edit v4.2

    Multi-Item Edit is an applet that acts as an alternative to iTunes’ “Get Info” editing panel:

    Multi-Item Edit screenshot

    You can read more about it on its product page, where there’s also a quick YouTube video explaining how it goes.

    This latest version fixes a problem with changing Last Played and Last Skipped dates in single-edit mode; fixes a logic issue with auto-setting checkboxes; worksaround issue whereby iTunes Match tracks might be ignored; fixes an issue with toggling Information Tracking; and has preliminary support for OS X 10.11 (El Capitan) beta.

    Multi-Item Edit is free to try for ten days, $1.99 thereafter.

    June 12 '15 - 6:19 am
    Script of the Day: Albumize Selection

    Albumize Selection re-numbers the track number and track count tags of each selected track to its current Play Order and, optionally, enters a new Album Name for every track.

    Albumize Selection

    In the screenshot, the selected tracks—sorted by Play Order—will be track-numbered 1 to 13, their track count tags set to 13 and each track’s album tag set to the text entered in the text field.

    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 '15 - 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.

    May 28 '15 - 6:39 am
    Script of the Day: Remove Leading-Trailing Spaces

    Remove Leading-Trailing Spaces will remove any number of extra space characters at the beginning and ending of chosen tags (Name, Artist, Album Artist, Album, Composer, Genre, Grouping and Show) in the selected tracks.

    Remove Leading-Trailing Spaces

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