• 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: Open Safari in fullscreen and hide toolbar script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Safari in fullscreen and hide toolbar script


  • Subject: Re: Open Safari in fullscreen and hide toolbar script
  • From: "Ball, Dan" <email@hidden>
  • Date: Fri, 31 Jul 2015 19:36:43 +0000
  • Thread-topic: Open Safari in fullscreen and hide toolbar script

HmmmŠ.not working for me.  Although I¹m currently working on 10.11.
Shouldn¹t matter though, although I do see a name difference when you¹re
in full screen mode and look under View it says ³Always Show Toolbar in
Full Screen².  But that should matter because we aren¹t using the name.

-Dan


On 7/31/15, 2:57 PM,
>I enhanced the code hiding the toolbar. Now it clicks the menu item 1
>only if the toolbar is visible.
>
>delay 10
>
>tell application "Safari"
>	activate
>	close every window
>	open location "http://www.google.com";
>	repeat # Wait until the window is really available
>		delay 0.1
>		if exists window 1 then exit repeat
>	end repeat
>end tell
>
>tell application "System Events" to tell process "Safari"
>	set frontmost to true
>	if toolbar of window 1 is not {} then
>		click menu item 1 of menu 1 of menu bar item 5 of menu bar 1
>	end if
>
>	keystroke "f" using {command down, control down} # force full screen mode
>
>end tell


 _______________________________________________
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


  • Prev by Date: Re: Open Safari in fullscreen and hide toolbar script
  • Next by Date: Re: Open Safari in fullscreen and hide toolbar script
  • Previous by thread: Re: Open Safari in fullscreen and hide toolbar script
  • Index(es):
    • Date
    • Thread