dougscripts.com

Managing Tracks

May 18 2015 - 5:45 am

Script of the Day: Albums Assemble

Albums Assemble will discern the Album tags of the selected tracks and then copy all the available tracks of each of those Albums to the current playlist, other existing playlist or new playlist.

Albums Assemble

Works with tracks selected in iTunes or a mounted iPod/iOS device set to manually manage tracks.

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.

November 8 2014 - 2:42 pm

Latest Batch of Updates

So busy slapping 'em together that I hadn't posted I'd updated 'em. Here's the last few updated scripts (October 29 - November 8):

Set Video Kind of Selected v5.0 - change the video kind property of the selected tracks to your choice of "Home Video", "Movie", "Music Video" or "TV Show". Additionally, "Show Name", "Season Number", and incremental "Episode Number" can also be set or cleared for each selected track.

Convert and Replace v2.0 - convert the selected tracks using an encoder chosen on-the-fly (the encoder's current Preferences-set options will be in effect) and replace the originals throughout the playlists of your entire library with the newly converted versions. Additionally, you can opt to Trash/delete or keep the original files and tracks.

Trackographer v4.0 - stay-open applet will monitor iTunes and send tag and time-of-play information of each track that plays (including iTunes Radio and internet radio streams if they provide track info) to a text file. Preferences can be set to include or not include various basic tags and to create a plain text file or a tab-delimited text file which can be imported into a spreadsheet.

Multi-Item Edit v2.1 - mostly bug fixes; edit most track tags (and some additional options) in a single window 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.

Delete Selected Files v2.0 - remove each selected track from all playlists and Trash or immediately delete their corresponding files. Some iTunes delete commands will not move files from outside the "iTunes Media" folder to the Trash. This script worksaround that.

Find Truncated Tracks v2.0 - assists with segregating iTunes Match tracks that appear to get cut-off when played (due to a possible bug which Kirk describes here). Then these truncated tracks can be deleted and re-downloaded intact (by you, not the script).

Playlist Manager v2.0 - iTunes only allows one playlist to be selected at a time. This applet can perform common useful tasks on a multiple selection of playlists: rename (add text, remove text, search and replace text), duplicate, delete, export, merge.

Search Results to Playlist v2.0 - 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. Can optionally re-create or append to the Search Results playlist on each run. Floats over iTunes while active for easy access.

October 8 2014 - 1:44 pm

UPDATED: List MIAs v4.0

List MIAs v4.0 will check your entire iTunes library for missing and presumed dead tracks—those tracks that iTunes is unable to associate with a file and which are listed in iTunes with a "!"—and can create a text file listing these tracks by alleged File Path (if available), Song Name, Artist and Album, which you can view using TextEdit.

This latest version has additional support for OS X 10.10 Yosemite/iTunes 12, drops support for pre-OS X 10.8, adds a "Check for Update" menu command, and tweaks to improve performance.

By the way, to actually remove dead tracks from iTunes use Super Remove Dead Tracks or TrackSift 2.

More info and download is here.

July 13 2014 - 3:43 pm

UPDATED: Not In Any Playlist v2.0

I don't necessarily encourage using playlists as longer-than-semi-temporary organizers. In fact, you could trash all my playlists right now and I wouldn't care. But if the thought of doing that on your own library makes your spine melt at about L5 then you might have OCD want to try meditation Not In Any Playlist.

This applet will scan iTunes for tracks that are not assigned to any user-created playlists and display them. Includes options to export the list as a text file, ignore Smart playlists, ignore non-Music tracks, and copy selected tracks to a new or existing iTunes playlist.

Not In Any Playlist is free to try full-featured for 10 days. More info and download here.

June 24 2014 - 9:36 am

NEW: Unfinished Podcast Episodes

My Podcasts library is littered with episodes I started playing with good intentions but abandoned. For a while, I was just keeping the 3 most recent episodes and the older unfinished episodes could take a hike in a black hole. But that's only satisfactory if the episodes happen to be time-sensitive. I've got a batch of evergreen episodes that I want to evaluate, but only if I haven't finished listening to them.

Unfinished Podcast Episodes will scan the Podcasts library (media tracks in other libraries that may be podcasts will be ignored) for episodes that have not finished playing and copy them to a playlist named "[-Unfinished Podcast Episodes>".

The script detects that an episode's bookmark-time value—the position at which it was paused or stopped—is less than its duration. The bookmark time will be set if an episode is set to "Remember playback position", the default setting for downloaded podcast episodes. .

More information and download is here.

June 4 2014 - 1:39 pm

NEW: Track CPR

iTunes will let you re-associate a file with a single selected dead track.

This really is the safest way for iTunes to do this. The user approves a one-to-one correspondence with a user-selected track and a user-chosen file. If an error choosing the correct track/file pair is made, the user made it, not iTunes. Still, being able to point an album's or artist's worth of dead tracks at a folder of corresponding files seems like it would be a simple task, though in practice perhaps not always one-hundred percent fool-proof.

I've been putting off building something like that for a long time because of the fool-proof factor. It's restrictive and awkward to make a one-size-fits-all tool without including a lot of options to account for idiosyncratic ambiguities that ultimately may generate more support issues—to put it politely—than I would like to handle.

With compromise and limitations in mind, I'm posting Track CPR, a script that assists with batch re-associating files with dead tracks.

And, in the interest of avoiding as many support issues as possible it's somewhat narrowly focused; while this script will do a lot of the work for you, it can't make a lot of decisions for you. Therefore you may find it tedious.

But not as tedious as clicking the "Locate" button 200 times:

So here's how it works:
(more…)

May 24 2014 - 11:26 am

UPDATED: List MIAs v3.2

List MIAs v3.2 checks your entire iTunes library for missing and presumed dead tracks—those tracks that iTunes is unable to associate with a file and which are listed in iTunes with a "!"—and displays them allowing you to delete them from iTunes or export a text file listing them by alleged File Path (if available), Song Name, Artist and Album, which you can view using TextEdit.

This latest version auto-saves the window and columns sizes (this is kind of awkward to do with Cocoa-AppleScript) and has other minor performance tweaks.

More information and download is here. If you use it and like it a donation would be greatly appreciated.

March 28 2014 - 9:57 am

NEW: Playlists By Volume v1.0

Had to round up some files located on disparate drives, but iTunes tracks can't be sorted using any file path information.

Playlists By Volume will sort the tracks of your iTunes library into discrete playlists based on the volume name of each track's file's location.

Takes about a minute per thousand tracks to complete.

More information and download is here.

February 13 2014 - 12:42 pm

NEW: Scan For Double Entries

A funny thing started happening shortly after the introduction of iTunes 11 a few months ago. I began getting reports from Correspondents about usually reliable scripts that weren't working correctly. After closer scrutiny, we were able to determine that some of their media files were appearing twice in the library. That is, they were finding pairs of identical tracks in the "Music" library that each pointed to the same file. Like this:


Two "Music" track entries, same file.

This is not ever supposed to happen. iTunes should not allow a file in a unique location to be added to its library more than once.

Now, this is not the same effect as copying a library track two or more times to a playlist, whereby only one library track is involved. Nor is it the same as when iTunes appends a number to a filename to distinguish it from an earlier-added same-named file. Nor do these tracks seem to be a flavor of iTunes Match duplicates (iTunes Match may or may not be a factor in their appearance). This issue manifests as sets of two distinct library track entries, each having different IDs and both having the same value for the Location property.

I don't know how this happens. But it definitely has something to do with moving media files around the wrong way and doing so with iTunes 11. It may be a bug and it may even be fixed by now. But I don't know. I only got it to happen once myself while I was experimenting convolutedly with a different issue and I haven't been able to replicate it since.

Regardless of how these pairs came to be, how now to find them and then to deal with them? If you have a very large library, you may not even notice if you have any faux pairs.

My duplicate removal apps, Dupin and Dupin Lite, can detect this condition but won't attempt to delete any files. If the file of one of the tracks were deleted, well, then neither track would be pointing to a file any longer and you'd have a lot of dead tracks. There's a trick to using Dupin to delete an arbitrary one of each of the track pairs, but, technically, they're not the sort of "dupes" that Dupin wants to handle.

So, the applet Scan For Double Entries simply looks through your library for track entries that have the same file path (that is, the same file location) and will copy these pairs of tracks to a discrete playlist so you can sort them out yourself. Presumably you'll want to delete one of the tracks in each faux pair and I'm not sure that's something you want an automated tool to do for you, you know, automatically.

More information and download is here.

December 28 2013 - 3:04 pm

UPDATED: Track Down Purchases v2.3

Track Down Purchases v2.3 will examine each track in the entire iTunes library—or a selection of tracks—for items purchased from the iTunes Store (audio, video, and audiobooks) and then sort them by either the purchaser's name or account ID into discrete playlists, eg: "Purchased by Tom Ryan" or "Purchased by tomryan@email.com".

Purchaser information is gleaned by examining the track's local file (purchase info for iTunes Match tracks in the cloud is inaccessible and cloud tracks will be ignored), which, depending on file location and access speed, may take as long a second per track. Just sayin'.

This lateset version fixes a problem for some OS X 10.9 users whereby the script would hang once engaged.

More information and download is here.

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.