Re: Alias vs. Finder object (was: Accented Characters in Finder Names)
Re: Alias vs. Finder object (was: Accented Characters in Finder Names)
- Subject: Re: Alias vs. Finder object (was: Accented Characters in Finder Names)
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 19 Dec 2003 10:59:24 -0800
On 12/19/03 9:33 AM, "Michelle Steiner" <email@hidden> wrote:
>
It appears that info for does not like Finder objects, but only works
>
with aliases. Is this expected behavior because info for is not a
>
Finder command?
The 'info for' entry in Standard Additions dictionary gives you the answer
to that:
info for - anything -- the alias or file reference to the file or
folder
('anything' never really means 'anything': it just means 'more than one data
type' so can't be specified more narrowly). 'alias of file reference' is
what it has to be, not a Finder object or any other object of any other
application.
>
BTW, putting the "info for" line inside the
>
tell-Finder block didn't help.
It wouldn't: once an application object, or list of objects, has been
defined in a tell block, they keep their context outside the tell block -
which can be extremely convenient. It's what allows you to pass such objects
as parameters to handlers, or return them as results of handlers, for
example. Matt Neuberg has a very good section on this in his new book.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.