• 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: Minimizing non-Frontmost Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minimizing non-Frontmost Windows


  • Subject: Re: Minimizing non-Frontmost Windows
  • From: Nigel Smith <email@hidden>
  • Date: Fri, 21 May 2004 15:16:20 +0100

On 21/5/04 13:42, "Irwin Poche" <email@hidden> wrote:

> True, that's simpler, but the real problem, why it doesn't work in the
> Finder, remains.

Erm, it does -- unless the real problem is why doesn't it work in *your*
Finder :-)

But I think you missed the point of the script: "id" of a window in the
Finder is, according to the Finder dictionary:

id unsigned integer [r/o] -- the unique id for this window

...while "number" of a window is a numeric index:

index integer -- the number of the window in the front-to-back layer
ordering

So "id" values need not reflect the stacking order of your windows, "index"
values *always* reflect stacking order. So

repeat with x from (count of windows) to 2 by -1

...addresses the backmost window, then the backmost window, until just 1
window is left -- the one that was always frontmost.

Hope that explains it better,

Nigel
_______________________________________________
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.


References: 
 >Re: Minimizing non-Frontmost Windows (From: Irwin Poche <email@hidden>)

  • Prev by Date: Re: applescripts 32k limit
  • Next by Date: Re: question.....
  • Previous by thread: Re: Minimizing non-Frontmost Windows
  • Next by thread: Re: Minimizing non-Frontmost Windows
  • Index(es):
    • Date
    • Thread