Re: Tell Finder Make New Folder wierdness!
Re: Tell Finder Make New Folder wierdness!
- Subject: Re: Tell Finder Make New Folder wierdness!
- From: Ehsan Saffari <email@hidden>
- Date: Tue, 22 May 2001 21:17:58 -0600
On 22/05/2001 20:42, Roderick Scott Corporation <email@hidden>
wrote:
>
I hope someone can help me. I'm trying to write a handler that will
>
crawl a folder path and verify the existence of the path, making new
>
folders as necessary to fulfill the path. Unfortunately, once my
>
script passes the point of creating a folder, it can no longer use
>
that new folder to place anything into it i.e. another folder. I
>
simply get an error that the last folder I created does not exist -
>
and therefore I cannot make a new folder in it.
Works fine here, strParentFolder contains the alias to the newly created
folder and you can tell Finder to create a folder in it within the same
handler.
--begin snippet--
set strParentFolder to strFolderPath as alias
end repeat
end if
make new folder at strParentFolder with properties {name:"Aha!"}--add
this line
end tell
--end snippet--
Maybe your problem is in passing strParentFolder to another handler?
cheers
ehsan