Last active
August 29, 2015 14:15
-
-
Save kitsuyui/10d284d2f8489507100f to your computer and use it in GitHub Desktop.
OS X で Google Chrome の「今開いてる URL とタイトルを全て取得」 ref: http://qiita.com/kitsuyui/items/b65ac4b3ff9d70f677dc
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
#!/usr/bin/env osascript | |
set o to "" | |
tell application "Google Chrome" | |
repeat with w in windows | |
repeat with t in (tabs of w) | |
set o to (o & (url of t) & "\t" & (name of t) & "\n") | |
end repeat | |
end repeat | |
end tell | |
return text 1 thru -2 of o |
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
$ chmod +x chromeurls | |
$ ./chromeurls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment