Hot answers tagged

1

It's System Events that handles the keystrokes. In normal AppleScript the code would look like: tell application "Safari" activate delay 0.5 tell application "System Events" key code 19 using command down end tell end tell As an osascript command line, it would be: osascript -e 'tell application "Safari" to activate' -e 'delay ...


1

The Opera web browser is still up-to-date. It's what I'm using as my MacBook can't run anything newer than OS 10.7.5.


1

Try the following: tell application "Safari" activate delay 0.5 end tell tell application "System Events" open location "http://localhost:38" delay 0.5 keystroke "w" using command down keystroke "n" using {shift down, command down} end tell Now here is the code I'd choose to use as it checks to see if Safari is already open and ...



Only top voted, non community-wiki answers of a minimum length are eligible