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:39:37 +0200
Le 7 mai 2008 à 18:28, Michelle Steiner a écrit :
On May 7, 2008, at 9:19 AM, KOENIG Yvan wrote:
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).
Why use GUI scripting when the function is built into the
application's scripting dictionary.
Of course, if the script just call the zoom tool there is no need for
the GUI scripting.
But, as the OP was using GUI scripting so I assumed that it posted
just a part of a larger script for which GUI was required.
Yvan KOENIG (from FRANCE mercredi 7 mai 2008 18:39:35)
_______________________________________________
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