• 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: How to maximize Safari windows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >How to maximize Safari windows? (From: Jim Krenz <email@hidden>)
 >Re: How to maximize Safari windows? (From: KOENIG Yvan <email@hidden>)
 >Re: How to maximize Safari windows? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: How to maximize Safari windows?
  • Next by Date: Re: How to maximize Safari windows?
  • Previous by thread: Re: How to maximize Safari windows?
  • Next by thread: Re: How to maximize Safari windows?
  • Index(es):
    • Date
    • Thread