dougscripts.com

August 13 2015 - 2:57 pm

Hooray! Sort Of

Apple fixed the drag from Playlist View problem!

But they didn't fix the current track in For You predicament or the drag from Audiobooks setback. So maybe these are not problems at all but just the way it's going to be.

August 13 2015 - 2:40 pm

iTunes 12.2.2 Released

Apple has released iTunes 12.2.2 which fixes some Apple Music issues, some issues with sorting and displaying playlists and includes the obligatory improvements to overall stability and performance.

August 6 2015 - 9:27 am

UPDATED: Sort by Artwork Size v1.1

Sort by Artwork Size v1.1 can write the size of a track's artwork (eg: "600x600") to choice of Category, Comments, Description or Episode ID tag (enabling tracks to be sorted by artwork size in a playlist using the chosen tag) and/or copy tracks with artwork less than or greater than a user-entered size to a new discrete playlist.

Note that if choosing the first option, the chosen tag will be re-written so it is best to choose a tag that is not already in use or not typically associated with a track's kind; for example, use the Episode ID tag (a TV Show tag) for music tracks or the Category tag (a Podcasts tag) for videos.

This latest version adds support for OS X 10.11 and accommodates changes in iTunes 12.2 and later.

Free to try for ten days, $1.99 thereafter. More info and download is on this page.

August 3 2015 - 10:37 am

UPDATED: Search Results to Playlist v2.1

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

This latest version has some minor fixes for compatibility with iTunes 12.2+ and accommodations for OS X 10.11 beta.

More information and download is on this page.

July 25 2015 - 2:34 pm

Get Asked This A Lot

"Do you have any scripts that work with iCloud Music Library/iTunes Match tracks? Like, to delete the cloud uploads and re-upload tracks?"

No. AppleScript cannot access anything in the cloud. Here's one of the reasons why: While it's certainly possible for me to write a script that arbitrarily deleted local tracks and files on your computer (with or without your knowledge), that's OK because presumably you knew stuff was going to get deleted by running the script. It's your responsibility, and Apple doesn't care what you do on your machine. You could set in on fire if that's what you wanted to do. Or install Flash. However, stuff in the cloud is Apple's responsibility. And they have pretty much guaranteed you that your goods up there are safe. So they're not going to let an AppleScript (of all things!) have arbitrary access to your goods in the cloud where it could potentially be a bad actor.

AppleScript can manipulate cloud tracks locally; for instance, copy such tracks to a new playlist or edit their tags. But anything to do directly with the cloud is strictly out-of-bounds.

July 25 2015 - 11:51 am

Site Issues Update

The site issues I mentioned previously are fixed. However, please don't hesitate to contact me if you experience any problems on the site. I'm still tying up loose ends. Thanks for your patience!

July 22 2015 - 12:42 pm

Site Issues

The site is experiencing some issues. I may be moving to a new hosting server as a result. Please excuse any disruptions or anomalies.

July 20 2015 - 2:22 pm

UPDATED: Music Folder Files Not Added v5.0

Music Folder Files Not Added v5.0 will list the file paths of the files in your designated "iTunes Media" folder which are not in iTunes' track library.

The files listed in this screenshot are in my iTunes Media/Music/ folder but are not in the iTunes track library. In my case, this iTunes Media folder is used by two different iTunes installations on different partitions, so it is also possible that these files are added as track entries in the iTunes on the other partition. However, it is not uncommon to delete the tracks from iTunes without choosing to Trash the files.

Additionally, you can select a different parent folder and its contents will be compared to the iTunes library. Includes options to Filter results, Add a selection of found files to iTunes (Mobile Applications can not be added this way), move them to the Trash, and Export a text file listing the file paths.

This latest version includes PDF, Mobile Application, iTunes LP and iTunes Extra files when used with iTunes 12.2 or later; adds a Filter option to show only file paths containing entered text; has general performance tweaks.

Music Folder Files Not Added is free to try for 10 days and is $1.99 thereafter. More information and download is on this page.

July 17 2015 - 1:50 pm

iTunes 12.2 and AppleScript Issues, Volume 2

I have already noted the new loved properties for tracks and playlists. I must admit that an update to the iTunes sdef was heartening (pun not much intended). However, there are some lingering issues and new issues with the latest incarnation of iTunes. Perhaps they have yet to be got to. Yeah, that's it. They'll fix it, fingers crossed.

Pretty much anything to do with the Apple Music tabs is off limits to AppleScript. So, for example, you can't select a track or playlist in "For You" and get info about it or manipulate it. I don't mind this so much. Once tracks are added to "My Music", they are accessible as shared tracks. It'd been the same with iTunes Match tracks. You can get and set the conventional track properties, you just can't access file metadata because, by definition, there are no local files for tracks in the cloud. Still, access to tracks and playlists in "For You" and "New" might be convenient, if even for accessibility purposes.

I am disappointed that current track does not work with playing Apple Music tracks (if playing from within the "For You" tab). I'm not sure if there's a security issue here, or it's just not hooked up yet. Definetly screws up anything watching for current track to change. Notifications is aware of playing Apple Music tracks, so why not AppleScript? Even as read-only. I'd be cool with that.

The new Playlist view doesn't seem quite hooked-up yet either. This is the new default view for local playlists. Anyone who's ever worked with broadcast automation will note that the abridged track information in Playlist view is reminiscent of a music log. (Note to Apple: please let us change this default view. As much as I really like the Playlist view I prefer Songs view as default to work with track tagging and only switch to Playlist view on formal occasions.) AppleScript-wise, it's all OK. But the reason I don't think it's hooked-up properly yet is by observing the pasteboard data from a playlist in Playlist view. Now, pasteboard data for dragged tracks and playlists typically contain metadata about the playlist and tracks being dragged. Except when the drag originates from a local playlist in Playlist view. In such cases, only the file paths are available in the pasteboard. And if cloud tracks are included in the drag, well, they don't have local files, so nothing about them at all appears in the pasteboard. However, when the very same playlist is in Songs view, the metadata is available from the dragged tracks' pasteboard as expected. So the data is already permissibly available, just not (yet?) in Playlist view. I suspect that, because it seems to be the same view used in "For You" when you play a playlist there, it has no provision for includiing metadata. Someone should get on that.

Also, there's no AppleScript way to access the artwork(s) or description that is a part of the new playlist header. It would be convenient to be able to script a playlist's description at least.

Many of my scripts and apps access the iTunes Library.xml file to get information about tracks and playlists. That's what it's there for. iTunes 12.2 has, uhm, mucked around with the format of this file. As a result, there's been a big scramble by all of us who develop iTunes apps to re-jigger our stuff. The XML now contains information about mobile apps, Ringtones, iTunes LP, iTunes Extras, and books. The "Master" playlist has a name of "####!####" where it used to be "Library". "Smart Info" and "Smart Criteria" keys are now being used with playlists other than the Smart variety. Additionally, there is now no way to tell the difference between Genius and Smart playlists; they look identical in the XML. Previously, a Genius playlist would key the persistent ID of its seed track and this would be a differentiating factor. But the "Genius Track ID" key is gone.

The new "Share iTunes Library XML with other applications" Preference setting is still a mystery to me, but I suppose there could be situations whereby you'd want this off. Sometimes I'm just plain dumb about things like that. But because some users think it looks like the perfect thing to uncheck I've needed to include a check for access to the XML at the start of many apps. Because if it's off, the script or app won't work.

On the bright-side though, despite the Apple Music considerations, iTunes still has pretty robust AppleScript support! So thanks for that, Apple.

July 14 2015 - 2:16 pm

"When Is [insert name of script] Going to be Updated?"

Short answer: Soon.

Less-short answer: Pretty soon.

Long answer: There are about three dozen or so scripts that are affected by changes in iTunes 12.2. I'm updating those first and those updates should be finished within a couple of weeks. You may have noticed a number of updates in the past two weeks already. (Apple did not make a pre-release version of iTunes 12.2 available to developers, unlike the El Capitan developer releases. So I found out about changes when you did.)

Many other scripts need to be fixed for El Capitan specifically, but those are lower priority since 10.11 won't be officially released until the Fall. However, when I have had the opportunity, I've included fixes for 10.11 when making changes for the latest iTunes. But, generally, if you are using the El Capitan Public Beta, don't expect many scripts to be updated for at least a few weeks, until the scripts requiring updates for iTunes 12.2+ are updated.

As always, thanks for your support and patience.

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.