• 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: Question about "info for" command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about "info for" command


  • Subject: Re: Question about "info for" command
  • From: Jan Pieter Kunst <email@hidden>
  • Date: Thu, 14 Jun 2001 16:54:38 +0200

Pier Kuipers (email@hidden) schreef op 14-06-2001 15:14 :

>> tell application "Finder"
>> set x to folder of (info for selection)
>> end tell
>>
>> --> returns an error message??
>
> Strange, indeed.
> Of course, this does work:
>
> tell application "Finder"
> set x to (folder of selection) as alias
> end tell
> or
> tell application "Finder"
> set x to (folder of selection)
> end tell


Yes, but the "folder" property of "info for" something is a boolean: true if
something is a folder, false otherwise. I was looking to get that boolean,
not the "folder" of the Finder, which returns a path/alias (not sure of
terminology) to a folder.

Anyway, thanks to everyone for the explanation: a conflict between the
reserved words "folder" of the Standard Additions and the Finder. I
understand it, but I still think it's confusing that some parts of the "info
for" record are available in a Finder tell block and others aren't, because
the reason why is "random" in a certain sense: the same word happens to be
used for different things.

JP


  • Follow-Ups:
    • Re: Question about "info for" command
      • From: Paul Berkowitz <email@hidden>
    • Re: Question about "info for" command
      • From: Pier Kuipers <email@hidden>
References: 
 >Re: Question about "info for" command (From: Pier Kuipers <email@hidden>)

  • Prev by Date: Re: How to 'load' osaxen
  • Next by Date: Re: automating tasks!
  • Previous by thread: Re: Question about "info for" command
  • Next by thread: Re: Question about "info for" command
  • Index(es):
    • Date
    • Thread