Skip to content

Instantly share code, notes, and snippets.

@drewdiver
Created May 12, 2020 12:10
Show Gist options
  • Save drewdiver/b6e9a2f63d3075ebc6a747846715182e to your computer and use it in GitHub Desktop.
Save drewdiver/b6e9a2f63d3075ebc6a747846715182e to your computer and use it in GitHub Desktop.
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 "[" & tabName & "](" & tabURL & ")"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment