Managing Files
NEW: ConvExp to Album Folders
In my (seemingly never-ending) quest to get music into my car like a Regular Person I found that if I fill a USB stick with audio files in Artist/Album folders my car's audio system will occasionally work right. The script Export to Album Folders does this. Then I realized that I had a lot of Apple Lossless files which I'd have to convert to MP3 before dumping them to the stick. But that leaves the superfluous converted tracks and their files in iTunes' library which I'd have to remove using my hands.
ConvExp to Album Folders (Convert and Export to Album Folders) takes care of converting selected tracks, moving the converted files in Artist/Album folders to a selected location, and removing of the converted effluvia from iTunes.
A couple of Correspondents inquired about doing something like this, so I hope they and you find it useful.
More info and download here.
UPDATED: File Renamer v2.2
File Renamer will rename the files of the selected tracks (or the files of the tracks in the selected playlist) with a filename pattern that is formulated using the tracks' tag data. Optionally, export a copy of the files to a chosen location and rename the files in that location.
This latest version fixes a problem with escaping file path delimiters, fixes an issue with closing the Preview window, and has other minor fixes and enhancements.
You can download it here.
UPDATED: Export Selected With M3U v1.1
I've been wrestling with how to get files onto a USB stick for my car's audio system for some time now. The system can read files on a stick and then sort them by Songs, Artist, Album, Genre, Folders, and Playlist; but unless the files are loaded just-so, playlists are empty, data goes missing, files can't be played. I've also heard from Correspondents who report similar difficulties with their devices and it's obvious that there is no single standard convention for file storage among the many types of media players out there. Some players can't read subfolders, some require subfolders; some need everything in a "MUSIC" folder; some need specialized file-naming; and so on. (My car can also read the data from various generations of iPods and iPhones but, again, not consistently.)
Export Selected With M3U v1.1 will copy the files of the selected tracks to a user-chosen locationpresumably some kind of portable mediaand then create a M3U playlist file in the same location with relative file path references to the copied files.
The options available should be able to contend with any configuration required by any particular player. This latest version adds pattern-substitution file renaming and can optionally detect if the selected volume is FAT32 formatted which some players require.
More information, screenshot of results, and download is here.
UPDATED: File Renamer v2.0
Week or so ago this site got some hits from a post at Reddit which served to remind me that "Uh, this site's been around for thirteen years." One of the comments reported that "I used a file renamer script that renames files based on the tracks metadata. It changed all my .m4a tracks to .mp3 and broke a lot of my library even though I told it to not replace file extensions." Sorry about that.
The original version of File Renamer (which was written by a fellow named Tino Heth) was posted in January 2002 and it hasn't been updated since. Back then, there were only MP3s, so the script didn't have to account for M4A. Unfortunately, it didn't account for any other extensions either. So I thought if people are still talking about it after all these years I'd better update it.
You can download it here.
NEW: Export Selected With M3U
I've never had much use for M3U playlist files until we finally got a car (2011 Dodge Charger) with an audio system (so-called) that can accept a USB stick. Plus, over the years I've often been asked about getting iTunes files onto portable media (going back to the MiniDisc). So I whipped up this script, Export Selected With M3U, to export a selection or playlist of tracks' files to a user-chosen location and then create an M3U playlist file referencing the tracks:
And because not every player can use this configuration, there's also an option to place the audio files in a discrete subfolder.
...more
NEW: Convert and Replace
It hadn't ever occurred to me that the term "convert", as it applies to converting an audio file from one type to another and which is the AppleScript command for doing so, could be construed to mean "replace". Though that's probably why Apple has unambiguously named the menu item in the iTunes Advanced menu used to "convert" a track selection as "Create MP3 Version" (or whatever the current import setting is). It's pretty obvious you get an additional new track and not a transformed replacement.
"Convert" in its "replace" sense, however, is what a number of Correspondents have wanted to do: downsize some ALAC tracks to AAC or MP3, for example, and have the converted versions replace the occurrences of the originals in any playlists.
Convert and Replace will convert a batch of selected tracksor the tracks in a selected playlistusing an encoder chosen on-the-fly (the encoder's current Preferences-set options will be applied) and replace the originals throughout your entire library with the converted versions. Additionally, you can opt to Trash/delete or keep the original files and tracks. (If the tracks are kept they remain in the "Music" library but will have been replaced in all other playlists.)
Possible deal-breaker: newly converted tracks will have a Date Added of "now". There is no getting around this since Date Added is a read-only property assigned by iTunes when a new track is added to its library.
For OS X 10.6 or better.
NEW: Export Files to Folder
There are some scripts here that export files to chosen locations. And of course, you can drag-and-drop selected tracks from iTunes to copy their associated files. But Correspondent Chris Updegrove inquired about a workflow to get MP3 files into a playlist-named folder on a flash drive for use in his car audio system. (I think that some MP3-CD players worked this way, too. I think I remember MP3-CDs.)
Export Files to Folder will export the files of the tracks in a selected playlistor just the selected tracks in a playlistto a new folder in a user-selected location; the folder will be created using the name of the selected playlist. Here I've used it to dump a bunch of playlists to a mounted flash drive:
Optionally, an activity log can be created on the Desktop that will list what was copied (or not copied and error messages).
It's a Cocoa-AppleScript applet so it can only run on OS X 10.6 or better.
TIP: Your iTunes Match Scheme Leaves Duplicate Files
If you are using iTunes Match to update your music to the higher-quality Store stuff you may run into a duplicate file problem if you don't Trash the original files first. For example, I've got an album of MP3s I ripped in 2002 at 128K and now want the 256K AACs that I can download with iTunes Match. The trick here (explained by Macworld's Jason Snell) is to delete the tracks and Trash the files from iTunes, but not from the cloud. Then I can click the tracks' cloud icon to download the new files from the Store. However, if I don't Trash the files they will remain in my iTunes Media folder heirarchy and when the new AACs are downloaded I'll have the original MP3s alongside the new AACs.
But, if you get yourself into this situation you can easily find and remove the files that are no longer in your iTunes library (but which are still in your iTunes Media folder) with Music Folder Files Not Added. This app will list the files in your designated iTunes Media folder which are not in your current iTunes library so that you can Trash them (or add them, if you like).
UPDATED: Music Folder Files Not Added v3.0
Music Folder Files Not Added v3.0 is a Cocoa-AppleScript applet that will list the file paths of the audio and video files in your designated "iTunes Media" folder which are not in iTunes' library.
Additionally, you can select a different parent folder and its contents will be compared to the iTunes library. Includes options to Add a selection of found files to iTunes, move them to the Trash, andnew in this versionexport to a text file.
(An earlier version of this script, Music Folder Files Not Added v1.1, runs on pre-10.6 systems. Also, this script replaces the functionality available in List Music Folder Files Not Added.)
UPDATED: Quick Convert 3.0
Quick Convert v3.0 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.
Works with importing selected CD tracks, too.
- 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 Books library
This latest version consolidates all options into a single window and displays progress during track processing.
Quick Convert v3.0 is for OS X 10.6 or 10.7 only. Previous universal version for PowerPC machines available at the entry page.