creating new folders with a letter and numbers

Discussion in 'AppleScript' started by ClipMasterMC, Feb 14, 2008.

  1. ClipMasterMC

    ClipMasterMC New Member

    Joined:
    Oct 30, 2007
    Messages:
    3
    Likes Received:
    0
    I am trying to create a script that creates a series of folders with a letter, in this case a "M" followed by a number. For example:

    M10
    M11
    M12
    M13
    and so on...

    This is what I have so far:

    tell application "Finder"
    repeat with i from 1 to number of items in application "Finder"
    set this_item to item i of application "Finder"
    make new folder at folder "M10..." of folder "M1..." of folder "NEW ITEMS 2008" of folder "MacUsers" of disk "MACART$" with properties {name:}
    end repeat
    end tell

    My question is how do I add numbers to the property name that has a letter in it?

    Thanks in advance for the help.
     
    ClipMasterMC, Feb 14, 2008
    #1
    1. Advertisements

  2. ClipMasterMC

    Walrus666 New Member

    Joined:
    Jul 21, 2007
    Messages:
    1,252
    Likes Received:
    15
    Location:
    Chicago
    Hello,
    I have three scripts for you that might come in handy.
    The first script creates a folder.
    The second script will create four separate folders, M10-M13 on your desktop.
    The third script will create the M10 folder with the folders M11-M13, inside of it on your desktop.
     

    Attached Files:

    Walrus666, Mar 6, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.