Re: Minimizing non-Frontmost Windows
Re: Minimizing non-Frontmost Windows
- Subject: Re: Minimizing non-Frontmost Windows
- From: Irwin Poche <email@hidden>
- Date: Fri, 21 May 2004 07:42:48 -0500
On May 20, 2004, at 11:17 AM, Nigel Smith wrote:
On 18/5/04 19:06, "Irwin Poche" <email@hidden> wrote:
The script below works with Mail, Safari, Address Book, and TextEdit
but not the Finder. (It doesn't work with Word or Excel either but as
I
understand it, they're a lost cause.)
I added the Try's and added the "collapsed" because the Finder's
dictionary uses collapsed instead of miniaturized - to no avail.
You might find it easier to refer to each window by its number, rather
than
its id. 1 is frontmost, 2 is behind that, etc. Start at the *back* and
work
forward, hiding as you go:
----------
tell application theApp
repeat with x from (count of windows) to 2 by -1
try
set miniaturized of window x to true
on error
set collapsed of window x to true
end try
end repeat
end tell
----------
HTH,
Nigel
True, that's simpler, but the real problem, why it doesn't work in the
Finder, remains.
_______________________________________________
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.