• 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 18:57:42 +0000
  • Thread-topic: Open Safari in fullscreen and hide toolbar script

Ok, I don¹t think the script was ever finishing in 10.7 as it seems to be
working now, 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.  Here is what I got, but its
not right.

Thanks,

Dan

tell application "System Events" to tell process "Safari"
	tell menu item 1 of menu 1 of menu bar item 5 of menu bar 1
		set v to (value of attribute of menu item 1 of menu 1 of menu bar item 5
of menu bar 1) as string
		if (v = "1") then
			click menu item 1 of menu 1 of menu bar item 5 of menu bar 1
		else
			key code 53
		end if
	end tell
end tell





On 7/31/15, 11:41 AM,
"applescript-users-bounces+ball.dan=email@hidden on behalf of
email@hidden"
<applescript-users-bounces+ball.dan=email@hidden on behalf of
email@hidden> wrote:

>Message: 1
>Date: Fri, 31 Jul 2015 17:12:06 +0200
>From: Yvan KOENIG <email@hidden>
>To: liste AppleScript US <email@hidden>
>Subject: Re: Open Safari in fullscreen and hide toolbar script
>Message-ID: <email@hidden>
>Content-Type: text/plain; charset="utf-8"
>
>As I am curious, I tried to guess what you are trying to achieve.


 _______________________________________________
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


  • Follow-Ups:
    • Re: Open Safari in fullscreen and hide toolbar script
      • From: Christopher Stone <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