Sun, 20 Oct 2013

Linkblogging Aid: Frontmost Safari Tab's URL and Title Formatted For Markdown

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?

I have it attached to an Alfred hotkey. (download)

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

:: 03:47
:: /tech/computers/os/osx/scripts | [+]
::Comments (0)

After this was written there appeared a remarkable posthumous memoir that
throws some doubt on Millikan’s leading role in these experiments. Harvey
Fletcher (1884-1981), who was a graduate student at the University of Chicago,
at Millikan’s suggestion worked on the measurement of electronic charge for
his doctoral thesis, and co-authored some of the early papers on this subject
with Millikan. Fletcher left a manuscript with a friend with instructions
that it be published after his death; the manuscript was published in
Physics Today, June 1982, page 43. In it, Fletcher claims that he was the
first to do the experiment with oil drops, was the first to measure charges on
single droplets, and may have been the first to suggest the use of oil.
According to Fletcher, he had expected to be co-authored with Millikan on
the crucial first article announcing the measurement of the electronic
charge, but was talked out of this by Millikan.
— Steven Weinberg, “The Discovery of Subatomic Particles”

Robert Millikan is generally credited with making the first really
precise measurement of the charge on an electron and was awarded the
Nobel Prize in 1923.