Given an UUID, I am able to tell Drafts via URL-Scheme to open a Draft and run an action, with something like this (where I have an delete-action that just deletes an action).
However, what I am interested in is to run an action completely in the background. In the case above, Drafts comes into the foreground. Here are some possibilities I thought, but I haven’t really figure it out with any of them.
- I could use an x-success parameter as detailed in the x-callback-specification, but that only works when the source app has an URL scheme as well. Also when using sth like Alfred, the app I would return to varies.
- with the runaction-URL-Scheme, I can run an action in the background, but haven’t figured out how to pass a specific UUID as a target for the action.
- I could somehow tell drafts app to hide after execution. But in that case I still get a “flickering” where Drafts briefly appears, deletes the Draft, and then goes back into the background. Its something, but not really nice.
Is there any way to do this properly?