• 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: Finder's open event has properties? Cal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder's open event has properties? Cal?


  • Subject: Re: Finder's open event has properties? Cal?
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 06 Dec 2000 01:04:26 -0800

On 12/5/00 4:13 PM, "Chris Nebel" <email@hidden> wrote:

> 2. The "with properties" parameter for the Finder's "open" (and for "make
> new") does not apply to the direct object, but rather to the verb itself. In
> other words, the command "open application file id 'blah' with properties
> {visible: false}" is parsed like this:
>
> verb: open
> direct object:
> class: application file
> keyform: id
> key data: "blah"
> parameter:
> key: with properties
> data: {visible: false}
>
> Not like this:
>
> verb: open
> direct object:
> class: application file
> keyform: id
> key data: "blah"
> qualifier: with properties {visible: false}

>
> Therefore, it doesn't matter that application files don't have a "visible"
> property, because that's not what it's talking about. The "properties" are
> extra parameters to pass along with the "open" command, not qualifiers on
> which application file you get.
>

But it is very odd that a verb, namely 'open', should have properties at
all. Do we treat the specific properties as if they belong to the resultant
running application, like a process? What other properties, aside from
'visible', can be specified in the properties record? And why does
{visible:false} lie? [I've asked this about 5 times now, and no one has
ventured an answer.] The app that opens is _NOT_ invisible: it is just in
the background. When I try this with Internet Explorer:

tell application "Finder" to open application file id "MSIE" with
properties {visible:false}

IE opens in the background, not hidden. If I try

tell application "Finder" to open application file id "MSIE" with
properties {frontmost:false}

IE opens in the front, ignoring the property request. Neither 'visible' nor
'frontmost' is in the IE dictionary, but they are both in the Finder
dictionary for 'process', which doesn't appear to be operative here.

So 'frontmost' isn't a valid property here, and is simply ignored in typical
Finder fashion. And 'visible' IS a valid property, but 'visible:false' does
not mean 'not visible', it means 'not frontmost'.

What other properties can be used with 'open'? Are they app-dependant at
all? And why does 'visible:false' actually operate as 'frontmost:false'?


--
Paul Berkowitz


References: 
 >Re: Finder's open event has properties? Cal? (From: Chris Nebel <email@hidden>)

  • Prev by Date: Re: Math/Geometry Guru anyone?
  • Next by Date: Re: Font Lists
  • Previous by thread: Re: Finder's open event has properties? Cal?
  • Next by thread: Re: Finder's open event has properties? Cal?
  • Index(es):
    • Date
    • Thread