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

Open Safari in fullscreen and hide toolbar script


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

Hello all,

Hoping someone can help me!   I had this applescript application running on 10.7.x fine and upgraded it to 10.10 and it won’t run anymore.  I added the app to the security pane and still has issues.  I’m wondering if its the code.  At the end it complains that it can’t find window 1 of group 2.  Is there a better way to write this?  I tried a few things, but at a loss.


delay 10


tell application "Safari"

activate

closeeverywindow

open location "http://www.google.com";

end tell


delay 2


tell application "System Events"

tellapplication process "Safari"

try

clickmenu item "Enter Full Screen" of menu 1 of menu bar item "View" of menu bar 1

end try

end tell

end tell


delay 2


tell application "System Events"

tellapplication process "Safari"

try

clickmenu item "Hide 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

*)


tell application "System Events"

activateapplication "Safari"

tell application "System Events"

performaction "AXShowMenu" of toolbar 1 of group 2 of window 1

key code 125

keystrokereturn

end tell

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


  • Follow-Ups:
    • Re: Open Safari in fullscreen and hide toolbar script
      • From: Yvan KOENIG <email@hidden>
    • Re: Open Safari in fullscreen and hide toolbar script
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: AppleScript-Users Digest, Vol 12, Issue 341
  • Next by Date: Re: Open Safari in fullscreen and hide toolbar script
  • Previous by thread: Re: AppleScript-Users Digest, Vol 12, Issue 341
  • Next by thread: Re: Open Safari in fullscreen and hide toolbar script
  • Index(es):
    • Date
    • Thread