Re: can't get the folder of info for x
Re: can't get the folder of info for x
- Subject: Re: can't get the folder of info for x
- From: Jolly Roger <email@hidden>
- Date: Mon, 17 Sep 2001 13:58:15 -0500
On 9/17/2001 1:10 PM, "Brian Gollands" <email@hidden> wrote:
>
If I test for any other boolean or info (alias, visible, name, etc.),
>
the above code works. However, I just get a "Can't get folder of ...
>
[the record contents]..." when I test for folders. Is this a known
>
bug with "info for" in the Standard Additions or maybe a problem with
>
my code? Maybe a conflict from another scripting addition? Just
>
wondering if I'm all alone, or if this is something others have seen.
Hi Brian,
I suspect you have this line "if (folder of item_info is false) then" in a
tell application "Finder" block. Am I right?
The Finder defines its own "folder" class. If you tell the Finder to
interpret that line, it will try to interpret it in a different context and
will of course fail.
In general, avoid enclosing unnecessary lines in tell blocks to avoid this
kind of problem. Tell blocks are handy, but can cause problems like this if
you abuse them.
HTH
JR