• 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: Christopher Stone <email@hidden>
  • Date: Sat, 01 Aug 2015 00:28:21 -0500

On Jul 31, 2015, at 13:57, Ball, Dan <email@hidden> wrote:

however every time it runs it hides the toolbar, but on second run it shows the toolbar. So now I have to figure out if its already checked and if so then uncheck it.

______________________________________________________________________

Hey Dan,

You'll want to do something like this:

--------------------------------------------
tell application "System Events"
  tell application process "Safari"
    set frontmost to true

    tell menu bar item "View" of menu bar 1
      tell menu item "Hide Toolbar" of menu 1
        if it exists then
          click it
        end if
      end tell
    end tell

    

  end tell
end tell
--------------------------------------------

--
Best Regards,
Chris

 _______________________________________________
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: 
 >Re: Open Safari in fullscreen and hide toolbar script (From: "Ball, Dan" <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
  • Next by thread: Re: Open Safari in fullscreen and hide toolbar script
  • Index(es):
    • Date
    • Thread