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 Moderator

    Joined:
    Jul 21, 2007
    Messages:
    1,252
    Likes Received:
    12
    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

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.
Similar Threads
  1. Sean McBride
    Replies:
    3
    Views:
    195
    Wayne C. Morris
    Jul 18, 2004
  2. Mark Wrenn

    Creating folders - a Windows Programmer Question

    Mark Wrenn, Jul 19, 2005, in forum: Programmer Help
    Replies:
    6
    Views:
    266
  3. Jr. Mac Admin
    Replies:
    1
    Views:
    199
    Jr. Mac Admin
    Sep 11, 2006
  4. Jason

    Creating smart folders

    Jason, Mar 23, 2007, in forum: AppleScript
    Replies:
    0
    Views:
    355
    Jason
    Mar 23, 2007
  5. ajia
    Replies:
    1
    Views:
    1,070
    Kaveman
    Jan 9, 2012
  6. flikhopper
    Replies:
    1
    Views:
    886
    Kaveman
    Jan 20, 2013
  7. sojo1991

    Creating hidden folders?

    sojo1991, Jun 13, 2013, in forum: Mac OS X
    Replies:
    0
    Views:
    310
    sojo1991
    Jun 13, 2013
  8. Diana Eden
    Replies:
    5
    Views:
    386
    oldscribe
    Feb 12, 2014
Loading...