Created
December 14, 2017 20:39
-
-
Save cmsj/72c4314ee3e5061811fe96ae9d30fc7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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