Re: folder of
Re: folder of
- Subject: Re: folder of
- From: JollyRoger <email@hidden>
- Date: Mon, 27 Nov 2000 10:20:37 -0600
on 11/27/2000 12:12 AM, email@hidden at email@hidden wrote:
>
Is anyone else having trouble with "folder of" to determine if
>
a file is a folder? In the following, I get an error that says:
>
"can't get folder of".
You are telling the Finder to get "folder of" when the "folder of" command
really belongs to the Standard Additions scripting addition, not the Finder.
Because you are telling it to the Finder, the Finder is trying to make sense
of it, and failing.
My advice:
This is a good example of how using tell blocks to encapsulate commands not
belonging to the "told" application can bite you. Try to avoid using tell
blocks whenever possible. A lot of times it is possible to write scripts
without ever using tell blocks. Only use tell blocks when absolutely
necessary.
JR