This AppleScript snippet is probably useful to no one except me, but if it saves even one other Mac-based Markdown-using linkblogger a few seconds, why not?
tell application "Safari" set myTitle to name of document 1 as string set myURL to URL of document 1 as string set mdstring to "[" & myTitle & "]" & "(" & myURL & ")" set myResponse to (display dialog "Selectable Markdown Link Text" default answer mdstring) if myResponse's button returned is "OK" then set the clipboard to myResponse's text returned end tell
Friends, Romans, Hipsters,
Let me clue you in;
I come to put down Caesar, not to groove him.
The square kicks some cats are on stay with them;
The hip bits, like, go down under;
so let it lay with Caesar. The cool Brutus
Gave you the message: Caesar had big eyes;
If that’s the sound, someone’s copping a plea,
And, like, old Caesar really set them straight.
Here, copacetic with Brutus and the studs, —
for Brutus is a real cool cat;
So are they all, all cool cats, —
Come I to make this gig at Caesar’s laying down.