Table of contents
Flow - drpaste
This flow can deal with two different types of input. The input type is determined by the value of the
fetch is not set, or is set to
query passed in is taken to be transient content to copy to the clipboard and immeidately paste to the cursor position.
fetch is set to
true, the flow interprets
query as a draft unique identifier. It will retrieve the content of the identified draft, and place it on the clipboard as a transient copy, and then immediately paste to the cursor position..
The following variables can be passed in and will be processed by the flow.
| ||The unique identifier of a Draft, or the content of a draft; as specified by the |
| ||When set to |
* These are mandatory for triggering this flow.
The following variables are set-up by the flow.
| ||The title to be shown in any completion notification.|
| ||The message to be shown in any completion notification.|
- External Trigger:
Sample Code (AppleScript)
tell application id "com.runningwithcrayons.Alfred" run trigger "drpaste" in workflow "com.thoughtasylum.doctordrafts" with argument "some unique text in the draft" end tell
fetchis set to
trueand an invalid UUID is passed in, the clipboard will remain unchanged, and no content will be pasted. No error is reported.