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: Bill Briggs <email@hidden>
- Date: Fri, 22 Jun 2001 23:04:42 -0300
At 2:25 PM -0700 22/06/01, Michelle Steiner wrote:
tell application "finder"
--do something
end tell
Wouldn't it be nice if we could just type this?
tell the finder
--do something
end tell
Would it be hard for someone to write an osax that defines finder in that
manner? Would it be hard for Apple to incorporate it into Applescript
itself?
You have objects that belong to classes and they are distinguished
by that class membership. The Finder is an application, so why would
it be a member of the class constant? Would you want to do the same
for folders, files, disks? Shouldn't constants be things like "pi"
and "e"? I may be all wet, but I can't see what the motivation for
this would be. Can you tell us why this would be of any benefit? I
don't understand why you think it would be of any benefit (to any
scripter, new or seasoned), and I find reasons why it would be
confusing to learning scripters. Can you clarify the thinking behind
it? I'd be interested to hear. If Finder is an application, but it's
in a class that no other application is in, and it is in a class that
"pi" is in, then this is going to add the burden of learning an
exception when there is no benefit gained.
- web