Link Search Menu Expand Document
Table of contents
  1. Flow - drurl
    1. Description
    2. Variables
      1. Used
      2. Created
    3. Termination
    4. Flow
    5. Scripting
      1. Sample Code (AppleScript)
      2. URL
    6. Notes

Flow - drurl

Description

Receives a draft’s unique identifier, and then copies a URL to the clipboard that will load the draft into the editor in the Drafts app.

Variables

Used

The following variables can be passed in and will be processed by the flow.

Variable Description
query * The unique identifier of a Draft.

* These are mandatory for triggering this flow.

Created

The following variables are set-up by the flow.

Variable Description
NotificationTitle The title to be shown in any completion notification.
NotificationMessage The message to be shown in any completion notification.

Termination

Flow

drurl

Scripting

Sample Code (AppleScript)

tell application id "com.runningwithcrayons.Alfred" to run trigger "drurl" in workflow "com.thoughtasylum.doctordrafts" with argument "60348DD9-C3B3-4CFF-891F-E749CBED1E40"

URL

alfred://runtrigger/com.thoughtasylum.doctordrafts/drurl/?argument=60348DD9-C3B3-4CFF-891F-E749CBED1E40

Notes

  • The URL is of the format drafts://open?uuid={url}.
  • No checks are made to see if the specified draft exists.