No, it was just that simple.
I'm just getting back to Applescript after a long while, and I was only a newbie then, so thanks a lot.
One other issue is that when the first folder is created, it it not named what I've typed into the dialog, it's named with Kanji characters. Ever seen this, and can I fix it?
This is the beginning of my script:
set projectFolder to (choose folder)
tell application "Finder"
set projDir to make new folder at projectFolder with properties {name:display dialog "Project Name" default answer "" buttons {"OK", "Cancel"} default button 1}
Thanks for the help,
Lou
On Oct 19, 2005, at 8:14 PM, Dave Lyons wrote:
On Oct 19, 2005, at 2:34 PM, Louis Genovese wrote:
I'm trying to make a simple script with which I can right-click in a folder and create a new directory within that folder, that contains more folders.
A structure like this:
Right Click in a folder and create these folders:
New Project Folder
Folder 1
Folder 2
Folder 3
Folder 4
Subfolder 1 (in Folder 4)
I can create a new folder simply enough, but I'm having trouble then targeting the newly created folder for the next action.
If you're asking Finder to do the work, and you need to refer to the folder you just created, that should be straightforward:
tell application "Finder"
set foo to make new folder at desktop
set bar to make new folder at foo
end tell
Maybe I don't understand the question. Cheers,
--Dave