Skip to content

Instantly share code, notes, and snippets.

@s3itz
Created March 27, 2015 09:08
Show Gist options
  • Save s3itz/04bb5ff644fe7c4a492c to your computer and use it in GitHub Desktop.
Save s3itz/04bb5ff644fe7c4a492c to your computer and use it in GitHub Desktop.
tell application "Safari"
activate
open location "http://www.google.com"
delay 3
set theScript to "document.getElementById('lst-ib').value = 'hello world'"
do JavaScript theScript in current tab of first window
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment