Re: Question about "info for" command
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