Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tell application "Safari"
set tabURL to the URL of the current tab of window 1
set tabName to the name of the current tab of window 1
set the clipboard to "<a href=\"" & tabURL & "\">" & tabName & "</a>"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment