Last active
December 15, 2015 03:29
-
-
Save nilswindisch/5194575 to your computer and use it in GitHub Desktop.
Returns the URL and Title of the foremost Google Chrome tab in MediaWiki Syntax to the clipboard.
This file contains 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
-- quick and dirty, but works with latest Google Chrome and Mac OS X as of march 2013 | |
set theReturn to "" | |
tell application "Google Chrome" | |
set frontIndex to active tab index of front window | |
set theUrl to URL of tab frontIndex of front window | |
set theTitle to title of tab frontIndex of front window | |
set theReturn to theReturn & "[" & theUrl & " " & theTitle & "]" | |
end tell | |
set the clipboard to theReturn | |
--return theReturn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment