I saw that programmer extraordinaire Mike Lee posted to Twitter, wondering if MarsEdit had a way to turn comments off by default when writing a new post. If there is a way to do that within the program, I don’t know it — but I do know how to do that in AppleScript! (UPDATE – […]
tellapplication"MarsEdit" makenewdocument telldocument1 set comment status to2 endtell endtell
This was originally published on the Red Sweater forum by Daniel Jalkut, and I have added it to the code library here! — Justin: It takes the highlighted text and turns it into a link to the frontmost page in Safari, complete with the appropriate title tag.
tellapplication"Safari" set t tonameofwindow1 set s to URL ofdocument1 endtell
tellapplication"MarsEdit" set u to selected textofdocument1 set selected textofdocument1to"<a href=\""& s &"\" title=\""& t &"\">"& u &"</a>" endtell
It takes a lot of time, money, and care to run this site. I'm so very grateful to the readers below who've shown their support for Veritrope with a donation.