Safari Tab Links to clipboard, html
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
tell application "Safari" | |
set themax to number of tabs of window 1 | |
set thelist to "" | |
repeat with x from 1 to themax | |
set thelist to thelist & "<a href=" & quote & (URL of tab x of window 1) & quote & ">" & (name of tab x of window 1) & "</a>" & return | |
end repeat | |
set the clipboard to thelist | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment