• 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: 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.


  • Follow-Ups:
    • Re: Minimizing non-Frontmost Windows
      • From: Nigel Smith <email@hidden>
References: 
 >Re: Minimizing non-Frontmost Windows (From: Nigel Smith <email@hidden>)

  • Prev by Date: Re: question.....
  • Next by Date: Re: How is the applescript support in Office 2004?
  • Previous by thread: Re: Minimizing non-Frontmost Windows
  • Next by thread: Re: Minimizing non-Frontmost Windows
  • Index(es):
    • Date
    • Thread