Created
November 8, 2024 16:24
-
-
Save jclem/5a3b6421739a9c2f4abdf78117a17ca2 to your computer and use it in GitHub Desktop.
Copy Safari URL as Markdown
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 theName to get name of front document | |
set theURL to get the URL of front document | |
set theLink to "[" & theName & "](" & theURL & ")" | |
end tell | |
set the clipboard to theLink |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment