Re: Minimizing non-Frontmost Windows
Re: Minimizing non-Frontmost Windows
- Subject: Re: Minimizing non-Frontmost Windows
- From: Nigel Smith <email@hidden>
- Date: Thu, 20 May 2004 17:17:47 +0100
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
_______________________________________________
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.