I started with this shortcut for Things and adapted it for OmniFocus:
I also improved the shortcut so that it appends the links to the OmniFocus tasks to the end of the note. (It requires plain text instead of rich text now).
I’d love to change the links behavior and would place them right in the line where the todo was before.
Unfortunately it seems that Agenda doesn’t support replacing a note with a new content. Only appending or creating a new one.
Maybe this can be added in a future release, @mekentosj ?
Right, we could add this ability but it would be an all-or-nothing option, i.e. replace the entire content of the note, not replace a few paragraph and keep the rest.
Update: New in the upcoming version 13 update is the requested ability to replace the text of an existing note completely with that provided through the replace-note x-callback-url, see the reference here.
I would love to be able to replace the native “\remind(tomorrow)” shortcut in notes so that the reminders go into the inbox in Omnifocus instead of Reminders.
Today I do this through using the \remind shortcut and then Omnifocus reads the reminder out of the inbox in Reminders and pulls it over to the Inbox in Omnifocus. Wish this was native.
Just check to see if anyone is having problems with this shortcut? The shortcut will run, but it won’t add tastes in OmniFocus and the note in Agenda is only partially returned after the Shortcut runs.
I thought maybe I broke something with a custom tweak, but re-downloading the linked shortcut above has the same problems.
Doing some addition investigation I found the Shortcut breaks if certain characters are in the Agenda To Do list. The note that was breaking the Shortcut had the word “P&ID”. If I remove the ampersand, both the original and my modded short cut works. Adding the normal acronym back into the note and the Shortcut breaks.
Next step is to add some regex checks for certain characters.
That would indeed be cool but require quite a bit of work together with the folks of Omnifocus, last time I checked they didn’t have a way to query for existing reminders through an API for example.
Yes, but the automation framework you’ve linked is for automations inside the app.
Afaict it isn’t possible to use this api from other apps.
On the Mac however the AppleScript api could be used to create and get tasks.
On iOS the Share Sheet would be needed - at least on iOS 14 or less. I’m not sure about iOS 15.