I am having trouble creating nested folders. I can create and rename four folders with the following script:
tell application "Finder" set shotFolder to make new folder at location_folder set name of shotFolder to (item 1 of nameList) set scansFolder to make new folder at location_folder set name of scansFolder to (item 2 of nameList) set rendersFolder to make new folder at location_folder set name of rendersFolder to (item 3 of nameList) set elementsFolder to make new folder at location_folder set name of elementsFolder to (item 4 of nameList) end tell
but I want to put the last three folders inside the first. I have tried everything I can think of.
I can't figure out how to use the ID of the folder. The sample script in the documentation showing how to use the folder id to open a renamed folder gives an error on my machine saying there is an unknown object. When I try to add it to the above I get the following results
tell application "Finder" make new folder at alias "richard_hd2:temp:" folder "untitled folder 2" of folder "temp" of disk "richard_hd2" get id of folder "untitled folder 2" of folder "temp" of disk "richard_hd2" "Finder got an error: Unknown object type."
What am I doing wrong and what do I need to do to create subsequent folders inside the newly created and renamed folder?
Richard Patterson Illusion Arts 6700 Valjean Avenue Van Nuys, CA 91406 818 901-1077 FAX: 818 901-1995 email@hidden |