Would you help me write a simple Applescript please?

Discussion in 'Mac Programming' started by motulist, Jul 20, 2007.

  1. motulist macrumors 601


    Dec 2, 2003
    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?
  2. kainjow Moderator emeritus


    Jun 15, 2000
    If you're new to AppleScript, go here and read through the PDF.
  3. HiRez macrumors 603


    Jan 6, 2004
    Western US
    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.

Share This Page