Re: How to maximize Safari windows?
Re: How to maximize Safari windows?
- Subject: Re: How to maximize Safari windows?
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 7 May 2008 18:19:56 +0200
Le 7 mai 2008 à 18:01, Jim Krenz a écrit :
Hello,
Is there a way to make Safari expand its window to fill the screen
(but respect the dock's location) on the monitor it is presently on?
I've found this script that uses the zoom feature, but I want to
maximize the Safari window, not just zoom it.
tell application "System Events" to click (first button whose
subrole is "AXZoomButton") of (first window whose subrole is
"AXStandardWindow") of (first process whose frontmost is true)
Thanks for any help!
Jim
This one does the trick:
tell application "Safari" to activate
tell application "System Events" to tell (first process whose title
is "Safari") to click (button 2) of (first window whose subrole is
"AXStandardWindow")
But in fact, it changes only the height of the displayed window.
It doesn't enlarge it to fit the screen width (exactly as when I
click by hand).
Yvan KOENIG (from FRANCE mercredi 7 mai 2008 18:19:54)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden