Skip to content

Instantly share code, notes, and snippets.

@kitsuyui
Last active August 29, 2015 14:15
Show Gist options
  • Save kitsuyui/10d284d2f8489507100f to your computer and use it in GitHub Desktop.
Save kitsuyui/10d284d2f8489507100f to your computer and use it in GitHub Desktop.
OS X で Google Chrome の「今開いてる URL とタイトルを全て取得」 ref: http://qiita.com/kitsuyui/items/b65ac4b3ff9d70f677dc
#!/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
$ chmod +x chromeurls
$ ./chromeurls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment