Cleanup Tags and Filenames

This page describes an AppleScript that I put together to translate special chacaters in the tags and filenames of MP3 files in your iTunes library so that they will be recognized by the AudioTron when it indexes the files. If you own an AudioTron and use a Macintosh running Mac OS X 10.1 or higher with iTunes as your ripper/encoder/librarian this this script is for you.

Copyright / License

Copyright (C) 2002 Bery Rinaldo

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Updates

DateVersionDescription
16-Dec-20021.0Initial release

Credits

Thanks to Joshua Rafofsky for the inspiration to write this script.

Also, you should visit the Mac OS X / AudioTron Page for more details on using your Mac and AudioTron together.

iTunes Setup

iTunes versions 2 and higher are what's known as "attachable". It has a Scripts Menu in its Menu Bar from which you can run AppleScripts. But you wouldn't know it at first glance. That's because you have to set it up.

For users of OS X: to make AppleScripts available to all Users, create a folder called "Scripts" and place it in Library > iTunes (you may have to create the "iTunes" folder; I think you can put the "iTunes Plug-Ins" folder here also). For single Users, make a "Scripts" folder in the Users > username > Library > iTunes folder. Put your scripts in the "Scripts" folder and they will appear in iTunes' Scripts Menu.

You can also create a "Scripts" folder in the Documents > iTunes folder. This is considered the "per-user" folder while the one in the iTunes application folder is global to all users.

The Script

I have provided a link to a StuffIt archive which contains the application.

After downloading and unstuffing the script, you should put it in the Scripts folder you created as part of the setup instructions above.

How To Use It

When you open iTunes, you will notice an AppleScript icon between the Window and Help pull-down menus. Select the tracks you want to run the script on by selecting them in the top-most iTunes window. When you pull-down on the AppleScript icon, you should see the script (as you've named it) in the menu.

When the script is complete, it will prompt with a dialog which indicated how many tracks were corrected.

And that's it! Next, tell your AudioTron to search for new files (via the web interface or the options button on the unit), files that it did not reconize before the update should be seen now.

Disclaimer

I developed this script on Mac OS X 10.2.2 with iTunes 3. It may work in other environments...your mileage may vary. This script may be freely copied, modified and used as you see fit. This script comes with no guarantee or waranty whatsoever, so use it at your own risk (that's my standard disclaimer ;-).


This page was last updated on: Mon Dec 16 23:30:11 PST 2002