Re: Minimizing non-Frontmost Windows
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.