Updates regarding Drafts integration

#1

Some things to note about Hook’s inter-operation with Drafts beta, first discussed here.

First off, Drafts is an august iOS writing app that has been redeveloped for macOS. Like Hook, Drafts is currently in public beta. Drafts has an AppleScript API, which we greatly appreciate.

Drafts was missing from “Link to New”

Our bad: the “Link to New” script was missing from our Drafts integration. We’ve added it to the script server. To get the latest scripts (version 31):

  1. Invoke Hook.
  2. Access the Preferences window.
  3. Click on the Script Editor pane.
  4. Click the Update Now button (at the bottom).

This script will also be included in the next build of Hook, of course. Hook’s script server is a quick way for us to deliver script updates.

Aside on Hook’s software UI

We are in the process of simplifying Hook’s software update user interface. Software updates will be fully controlled by the Updates tab. That will make life easier for us and our customers.

Making Drafts the “Link to New” default

Drafts, and database style apps (like Things and OmniFocus), cannot currently be made Hook’s “Link to New” default. We intend to address this in the future. (We will also endeavour to allow you to specify Drafts templates.)

However, you can configure keyboard shortcuts for “Link to New” apps in Apple’s keyboard shortcut tool (System Preferences > Keyboard > Shortcuts > App Shortcuts). There, I was able to create a keyboard shortcut that mapped ⌘⇧N to Drafts. (And similarly for OmniFocus).

And there are third party tools for keyboard shortcuts.

Drafts crashes when you delete a document via its automation

Hook runs into an issue such that when you create a Drafts document via its AppleScript, and then delete the document, Drafts crashes. So if you use Hook to create a Drafts document, when you delete the draft, Draft will crash.

We have notified the developer, Agile Tortoise, about this.

Acknowledgements

We were made aware of these issues by a user via email (perhaps due to the forum being down). Thanks again to that user for letting us know. And thank you all for your comments and for reading.

[Done] Drafts integration
#2

Drafts 5 for macOS was released on the Mac App Store a couple of weeks ago. You’ll want to eliminate the beta version, if you’re testing with that, and go with the public release – which has minor differences.

#3

thanks! And oops! I said Drafts Beta, but actually I was using version 5.9.8 from App Store, which is not beta. Sorry for the confusion.

The person who reported the crash to me mailed me back this morning saying he cannot reproduce the crash. And nor can I. Nor can Agile Tortoise. That’s puzzling.

So the bottom line is that Drafts automation seems to be working fine. And integration with Hook looks fine too.

#4

(Also, the difference isn’t do to macOS. I am still on 10.4.3, and will update to 10.4.4 this morning.)

#5

Safari on 10.14.4 has some nasty changes to the way keychain works. I haven’t noticed any Hook issues, yet.

1 Like