Mac Help Forums


Reply
Thread Tools Display Modes

creating new folders with a letter and numbers

 
New Member
Join Date: Oct 2007
Posts: 3
 
      14th February 2008
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.
 
Reply With Quote
 
 
 
 
Super Moderator
Walrus666's Avatar
Join Date: Jul 2007
Location: Chicago
Posts: 1,207
 
      6th March 2008
Quote:
Originally Posted by ClipMasterMC View Post
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.
Attached Files
File Type: zip CreatingAFolder.scpt.zip (1.2 KB, 18 views)
File Type: zip CreatingMultipleSeparateFolders.scpt.zip (1.7 KB, 18 views)
File Type: zip CreatingMultipleFoldersInOneFolder.scpt.zip (1.3 KB, 20 views)
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The law of the letter R UK Macs 0 25th March 2011 02:27 AM
Creating smart folders Jason AppleScript 0 23rd March 2007 03:21 AM
User sees XServe folders as Numbers??? Jr. Mac Admin Mac 1 11th September 2006 05:23 PM
Creating folders - a Windows Programmer Question Mark Wrenn Programmer Help 6 19th July 2005 09:14 PM
iPhoto 4, creating folders in the album list, how? Sean McBride Apps 3 18th July 2004 07:04 PM


All times are GMT +1. The time now is 09:03 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Yikes! Teacher needs help!
Mollyc4627 (6 Minutes Ago, 08:57 PM)

Unable to log in to websites
AMonty20 (3 Hours Ago, 05:52 PM)

Add Different Speech Commands
bae_22 (4 Hours Ago, 04:40 PM)

Login (2 macs) passwords spontaniously changed?
Roger Vaught (5 Hours Ago, 03:31 PM)

Best car charger or inverter for Macbook Pro?
imeme87 (5 Hours Ago, 03:22 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51