creating new folders with a letter and numbers

Joined
Oct 30, 2007
Messages
3
Reaction score
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.
 
Joined
Jul 21, 2007
Messages
1,252
Reaction score
15
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.
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.
 

Attachments

  • CreatingAFolder.scpt.zip
    1.2 KB · Views: 346
  • CreatingMultipleSeparateFolders.scpt.zip
    1.7 KB · Views: 336
  • CreatingMultipleFoldersInOneFolder.scpt.zip
    1.3 KB · Views: 346

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. After that, you can post your question and our members will help you out.

Ask a Question

Top