Writing applescript to create new folders! need help!!

Hey guys,

My boss recently has asked me to learn AppleScript. I have begun researching and trying to learn the basics.

One thing he wants me to learn how to do is to take a file name (or in my situation a “number”) and create a folder with that number. Then subsequently create a folder within that folder (I think this is what he wants) named "number_1 and then another “number_2” and so on.

Any help would be great. So far I have this:

tell application “Finder”
activate
select window of desktop
make new folder at folder “Desktop” of folder “Prepress” of folder “Users” of startup disk with properties {name:“script working”}
end tell

Hi,

activating the Finder and opening a window is not needed.
This creates the folder script working on desktop and folder_1 thru folder_4 inside


tell application "Finder"
	set scriptWorkingFolder to make new folder at desktop with properties {name:"script working"}
	repeat with i from 1 to 4
		make new folder at scriptWorkingFolder with properties {name:("folder_" & i)}
	end repeat
end tell