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


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

  • Prev by Date: Re: Setting file comments (Finder info comments) in OS X
  • Next by Date: Re: question.....[VERY LONG AND INVOLVED]
  • Previous by thread: Minimizing non-Frontmost Windows
  • Next by thread: Re: Minimizing non-Frontmost Windows
  • Index(es):
    • Date
    • Thread