• 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: Martin Orpen <email@hidden>
  • Date: Wed, 7 May 2008 17:28:47 +0100

On 7 May 2008, at 17:19, 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")


How about this cheeky approach:


tell application "Safari"
tell document 1 to do JavaScript "javascript:self .moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);"
end tell



:-)

--
Martin Orpen
Idea Digital Imaging Ltd


_______________________________________________ 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>)

  • 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