• 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: Location and size of display window.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Location and size of display window.


  • Subject: Re: Location and size of display window.
  • From: Philip Aker <email@hidden>
  • Date: Wed, 20 Sep 2006 13:10:25 -0700

On 2006-09-20, at 12:52:10, Ruby Madraswala wrote:

Can I set location or size of other windows? Ex. in illustrator can I set location and size, then open a file or open a file and then set location and size?

Hi Ruby,

The following shows how to access every kind of window that is available (and visible) and set its location and size:

tell application "System Events"
	set anames to name of every application process whose visible is true
	repeat with a in anames
		tell process a
			set wcount to count of windows
			if (wcount > 0) then
				repeat with w from 1 to wcount
					tell window w
						set position to {0, 22}
						set size to {360, 360}
					end tell
				end repeat
			end if
		end tell
	end repeat
end tell



Philip Aker
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
References: 
 >RE: Location and size of display window. (From: "Ruby Madraswala" <email@hidden>)

  • Prev by Date: Re: [LIST MOM] WAS: Re: [Q] How to get a containing folder of a given file?
  • Next by Date: Re: [LIST MOM] WAS: Re: [Q] How to get a containing folder of a given file?
  • Previous by thread: Re: Location and size of display window.
  • Next by thread: Re: acrobat and applescript
  • Index(es):
    • Date
    • Thread