Created
June 13, 2015 16:48
-
-
Save troutcolor/7602b12efc1c25aee730 to your computer and use it in GitHub Desktop.
create markdown list of Safari tabs
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
tell application "Safari" | |
set themax to number of tabs of window 1 | |
set titlelist to "" | |
set thelist to "" | |
repeat with x from 1 to themax | |
set titlelist to titlelist & "[" & name of tab x of window 1 & "][" & x & "]" & return | |
set thelist to thelist & "[" & x & "]:" & (URL of tab x of window 1) & return | |
end repeat | |
set the clipboard to titlelist & return & return & thelist | |
--[This link](http://example.net/) | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment