MacOS – Can Safari copy both the URL and page title during a drag-and-drop

macossafariurl

I frequently want to paste a URL and page title into a document or email message. When I drag and drop a URL from Safari and other browsers (by dragging the URL icon) I see the page title being dragged with the cursor. However, when I drop it in Terminal or in a Gmail message in plain text, I get the URL only and when I drop it in Textedit or in a Gmail message with rich text, I see the title only (with the link). Can I get both?

Best Answer

Byword seems to do that by default:

It's not really drag and drop, but you could also assign a shortcut to a script like this:

tell application "Safari" to tell document 1
    set the clipboard to "[" & name & "](" & URL & ")"
end tell