Re: How to maximize Safari windows?
Re: How to maximize Safari windows?
- Subject: Re: How to maximize Safari windows?
- From: Michelle Steiner <email@hidden>
- Date: Wed, 7 May 2008 09:28:04 -0700
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.
tell application "Safari" set the zoomed of the first window to true end tell
-- Michelle --
Approximately 20% of workday absences occur on Tuesdays.
|
_______________________________________________
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