i need to create folder/file structure that looks like this:
/bin
/lib
/src
Main.as
So far i have made a script that creates folder structure but i can’t find out how to create file(Main.as) in src folder. The Main.as file should have class definition, something like this:
package {
class SomeClass {
}
}
here is my script:
set jobName to text returned of (display dialog "Enter a job name:" default answer "")
set folderpath to (choose folder with prompt "Select client folder")
set newJobFolder to my newFold(jobName, folderpath)
on newFold(theName, thefolder)
set subNameList to {"bin", "lib", "src"}
tell application "Finder"
set newJobFolder to (make new folder at thefolder with properties ¬
{name:theName})
repeat with i from 1 to 3
make new folder at newJobFolder with properties ¬
{name:item i of subNameList}
end repeat
end tell
end newFold
Thanks,
Vedran