Evergreen Diary #5: Send to MarsEdit
When you choose the command, it sends the current article to MarsEdit — which opens it in a new window, and then you can edit and add your own commentary before posting to your blog.
* * *
See SendToBlogEditorApp.m for the code that packages up the article and sends an Apple event.
The code is not MarsEdit-specific — other apps in the past have supported this same Apple event, though I don’t know if any other current apps do. If I find some, I’ll add them to the sharing menu alongside MarsEdit.
* * *
The Apple event code is written in Objective-C, even though I almost always write new code in Swift. But, with Apple events code, Objective-C is easier.
It’s easy to call from Swift: see SendToMarsEditCommand.swift.
(Reminder: this is all MIT-licensed. You can use this code.)