PDA

View Full Version : Would you help me write a simple Applescript please?




motulist
Jul 20, 2007, 09:56 AM
Hi, I'm not a programmer at all, but I have a problem that I think would be easily solved using an Applescript. I've ripped a ton of my CDs using iTunes, but I don't like the way it organizes the actual mp3 files on my disk. iTunes organizes albums into separate artist folders like this:

------------------------------------------------
V Artist X
..... > Album 1
..... > Album 2

------------------------------------------------



But I like to keep them organized like this:

------------------------------------------------
> Artist X - Album 1
> Artist X - Album 2

------------------------------------------------


So I figure an Applescript could easy allow me to select just the artist folders


> Allman Brothers
> Boy Meets World
> Cool Mo Dee


and then drag and drop them onto an Applescript executable that would copy the folder name of each selected folder in the selected list and append just that 1 folder name to the beginning of any enclosed folder names. Does anyone know how to write a script that would do that?



kainjow
Jul 20, 2007, 04:35 PM
If you're new to AppleScript, go here (http://applescriptsourcebook.com/viewtopic.php?id=17556) and read through the PDF.

HiRez
Jul 21, 2007, 09:00 PM
Slightly off-topic, but why on earth do you care about or need to know what the files and folders are named? I haven't needed to muck around with any of my music files for years, since iTunes was first released. It's so much easier to let iTunes manage the file structure and you can deal with sortable/searchable/smart/draggable/more visual lists in the iTunes interface instead.