Re: Why isn't there a constant called finder?
Re: Why isn't there a constant called finder?
- Subject: Re: Why isn't there a constant called finder?
- From: Nigel Garvey <email@hidden>
- Date: Mon, 25 Jun 2001 00:54:21 +0100
Michelle Steiner wrote on Sun, 24 Jun 2001 07:00:55 -0700:
>
On 6/24/01 12:12 AM, Pier Kuipers <email@hidden> wrote:
>
>
>property finder : application "Finder"
>
>
>
>tell finder
>
> open item "Visual ID Server"
>
>end tell
>
>
>
>--> <<class sdsk>> of application "Finder"
>
>
Well, when I replace "visual ID Server" with the name of any of the
>
mounted disks, it works. But when I use "disk" instead of "item" it
>
doesn't work.
>
>
The result, though is
>
>
-->disk "Dora" of application "Finder"
This works with Mac OS 8.6 as well. I can even successfully do a few
things like:
tell finder
kind of item "4400 HD:Applications:"
--> "folder"
creation date of file "4400 HD:Applications:SimpleText"
--> date "Friday, 30 May 1997 11:00:00"
end tell
The conditions seem to be that:
1) The line has to be able to compile *without* the tell block.
2) The compiled code has to mean something in a Finder context.
NG