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:06:23 +0000
- Thread-topic: Open Safari in fullscreen and hide toolbar script
You know what, I have no idea. The script was from 10.7 and has been
working ever since without issue and I upgraded to 10.10 and the script
stopped working. The last two parts pretty much do the same thing, I
think, so I’m not sure. All I can figure is that the first one wasn’t
working and I added the other part in without commenting it out or
something. I didn’t notice it till you said something.
The delay 10 at the beginning was so when the machine is first turned on
to give it time for the computer to catch up as the script runs on login.
I’m not sure why I had these two things in there?:
tell application "System Events"
tell application process "Safari"
try
click menu item “Always Show Toolbar" of menu 1 of menu bar item "View"
of menu bar 1
end try
end tell
end tell
delay 3
tell application "System Events"
tell application process "Safari"
perform action "AXShowMenu" of toolbar 1 of group 2 of window 1
key code 125
keystroke return
end tell
end tell
Thanks for the help!
-Dan
>Message: 3
>Date: Fri, 31 Jul 2015 17:41:14 +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"
>
>
>>Le 31/07/2015 à 17:36, Ball, Dan <email@hidden> a écrit :
>>I¹m simply trying to open a webpage with Safari and launching it
>>fullscreen and hiding the toolbar. In fullscreen, the option is under
>>the
>>View Menu and is the first option to hide the toolbar.
>>I figured you could tell what I was trying to do by looking at the
>>script,
>>sorry.
>>Thanks,
>>Dan
>>
>Does what you ask but I wish to know why you posted the useless blocks of
>instructions ?
>
_______________________________________________
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