Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
script = [[
tell application "Google Chrome"
set currentURL to URL of active tab of first window
end tell
return currentURL
]]
hs.applescript(script)
Returns:
true http://foo.com/bar/baz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.