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

Flow - drredirurl

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 via the Drafts web site’s URL redirector.

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

drredirurl

Scripting

Sample Code (AppleScript)

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

URL

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

Notes

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