Applescript Safari S -

Note : For security, you must enable in Safari's "Develop" menu. Automating Web Content

: tell application "Safari" to open location "https://www.apple.com" . applescript safari s

Safari's native scripting dictionary is relatively small, with most interaction occurring via the do JavaScript command. Note : For security, you must enable in

: The do JavaScript command allows you to interact with the DOM, such as getting a page title or clicking buttons. Note : For security