Skip to content

Instantly share code, notes, and snippets.

@DougEverly
Created August 13, 2012 15:26
Show Gist options
  • Select an option

  • Save DougEverly/3341851 to your computer and use it in GitHub Desktop.

Select an option

Save DougEverly/3341851 to your computer and use it in GitHub Desktop.
Open current Safari URL in Webkit
property theURL : ""
tell application "Safari"
set theURL to URL of current tab of window 1
end tell
tell application "WebKit"
make new document
set URL of document 1 to theURL
activate
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment