Applescript to copy info from MarsEdit
Micro.Blogger @hutaffe asked:
Is there a MarsEdit plugin or something that helps to quickly share a Link and title with some highlighted text for Firefox?
Update: after researching and writing the following I realised I had the question totally back to front. @hutaffe wants to select something in Firefox and send it to Mars Edit. Anyway, I hope the following is helpful for someone.
Use Applescript
My answer is: Here, have an Applescript
.
The one tricky thing is the selected text
. For my script you need to select some text and copy it then run the script.
Here's the actual Applescript:
tell application "MarsEdit"-- first *copy* the text from the post that you want to include tell selected post -- clear variables set myTitle to "" set myLink to "" set myPub to "" set myText to "" -- grab info and load into variables -- put each bit on a new line set myTitle to return & "Title: " & title set myLink to return & "Link: " & permalink set myPub to return & "Published: " & published date set myText to return & "Quote: " & (the clipboard) -- this is the selection you copied -- assemble into a chunk ready to paste elsewhere set the clipboard to myTitle & myLink & myPub & myText end tellend tell
Here's a screenshot:

The script copies Title, Permalink, Publication Date and your previously selected and copied text and puts it all on the clipboard ready to paste somewhere. I ran the script and then pasted to BBEdit, my text editor of choice.

How and where to run the script
For this Applescript you first copy some text then select a published post in the Main Window of Mars Edit, then run the script.

You can run the script direct from Script Editor (check tthe Utilities folder inside the main Applications folder on your Mac).
I usually run scripts via Keyboard Maestro where I can use a small scripts palette or assign a keystroke. Another option would be Red Sweater's own FastScripts (free for up to 10 shortcuts).
The script itself
Either copy the script above and paste into Script Editor, or email me and I'll send the script: miraz@firstbite.co.nz . (Once I figure out something better I'll add a link to simply download it.)
Aotearoa New Zealand has an election on Saturday 19 September 2020, so now all the nutters and conspiracy theorists are coming out to play — Covid-19 “a bioweapon being used against the public”, 5G cell towers, 1080 poison, anti-vax, fluoride… Sigh.
We watched The Kitchen:
the wives of Irish mobsters, take over organized crime operations in New York’s Hell’s Kitchen in the late 1970s, after the FBI arrests their husbands.
Based on a comic book miniseries.
Hmm, watched it through, but a bit meh about it. 🎬
Sasha had her stitches out today. The vet’s happy with how the wound is looking. 🐶 Sasha’s still slightly irritated by the wound but is coping well. Such a good dog!
World Science Fiction Convention hosted by NZ:
10 years of planning have gone into New Zealand’s first time hosting the World Science Fiction Convention. Several thousand ardent fans, guests and speakers were due to come to Wellington from around the world - about now.
the show must go on … more than 750 planned talks, sessions and workshops will be beamed out around the world online.
Our slightly more distant neighbour is now grazing her gorgeous part-Arab horse and its friend in the paddock right opposite our gate. I'm happy. 😎 🐎 The horse is very friendly too.
Somehow the big load of firewood looks pretty small once it’s stacked in the firewood shed. We bought from the usual place, but this might be some of the best we’ve ever had. 🔥
A former MP tells: I wake in the night shaking
We can argue that women should be safe to walk streets at night, go into men’s hotel rooms, visit doctors, without fear of being sexually assaulted, but that’s never going to happen. There will always be sexual predators
My job for this afternoon and tomorrow is to store 4 cubic metres of firewood — a mix of pine, macrocarpa and douglas fir — in the firewood shed. Half an hour today got about a third of it. The rest tomorrow.
This praying mantis was on the garage door today. Apparently this isn’t the native mantis, but an invasive South African mantis. 🐜
Ugh, this wind drives me crazy. Mid-40s Kph speed, and gusts up to as much as 79 Kph! The noise alone is annoying, and then the house shakes. Tomorrow’s forecast has more of the same. 💨

This year I’ve read and pretty much enjoyed the Nichelle Clarke Crime Thrillers, books 1 to 6, by Lyndee Walker. 📚 They had their moments though and I took a few breaks during reading. Each story was different but they felt a little ‘samey’. The shoes annoyed me heaps.


I love so much that I can write text on my Mac, copy, and then paste on my iPhone without any other steps in the middle. Makes it so much easier to add a photo to Micro.Blog on my phone, sort out the text on a real computer, and then finish posting from the phone. 💗
Over the last few weeks I’ve watched Seasons 1 to 3 of One Day at a Time (2017 TV series). 📺 I’ve really enjoyed it. It’s been funny and touching. I’ve loved getting to see affirming stories about a teenage lesbian and her “Sydnificant” Other, and a non-white family. 👍
Less than 2mm when they hatch, sunfish can grow to more than three metres long, four metres tall and weigh over 2,000kg, which is roughly equivalent to a large hippo … they have the biggest growth increase of any animal. They increase in weight 600 million times.
ROFLMAO 🤣: Breaking: there is one new case of a disgraced politician in New Zealand. Toby Manhire writes hilariously on our rash of politicians in disgrace. Meanwhile, in Covid-19 news: we have no community transmission; new cases now come solely from newly arrived folks.
At sunset the the horses come out to play on the beach.


My wishlist for Micro.Blog:
-
a way to load new posts but keep my place in the timeline. Every morning I have endless scrolling to see what folks posted overnight.
-
default to the aspect ratio of an included photo, not to square.
-
let the Mac app upload videos and sound files.
The high-pitched Riroriro or Grey Warbler at start and end, ducks and magpies. Sorry about the background which is either or both of slight wind and the nearby sea. 🐦 I’ve never actually seen a Riroriro as far as I know — only heard them.
The weather forecaster reminded us that it snowed on 15 August 2011 in Wellington (extremely rare). We lived in Wellington then, at the top of Mt Victoria. This was the view from the lounge to the south (over Cook Strait) that day.