Re: Open Safari in fullscreen and hide toolbar script
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