• 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
Minimize all windows of an application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minimize all windows of an application?


  • Subject: Minimize all windows of an application?
  • From: Kevin Smith <email@hidden>
  • Date: Mon, 14 Feb 2005 18:54:12 -0500

I can't seem to figure out how to minimize all the windows of an application. I thought that the following command would work, but I just get an error.

tell application "System Events"
	set myapp to the name of the first process whose frontmost is true
	set mywindows to every window of application process myapp
	repeat with i in mywindows
		set collapsed of i to true
	end repeat
end tell

Kevin Smith
email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Danny Goodman's new AppleScript book
  • Next by Date: Re: xml file created from directory structure
  • Previous by thread: Re: question about behaviour of Appleworks save.
  • Next by thread: Re: Minimize all windows of an application?
  • Index(es):
    • Date
    • Thread