• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: can't get the folder of info for x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: can't get the folder of info for x -- solved
      • From: Brian Gollands <email@hidden>
References: 
 >can't get the folder of info for x (From: Brian Gollands <email@hidden>)

  • Prev by Date: Re: string count in log file
  • Next by Date: Re: string count in log file
  • Previous by thread: can't get the folder of info for x
  • Next by thread: Re: can't get the folder of info for x -- solved
  • Index(es):
    • Date
    • Thread