Action

Get UUID Link to a Draft

Posted by Mike Burke, Last update about 2 months ago

I use Draft’s UUID links a lot, like a lot, a lot.

I feel like I am missing a setting somewhere, but I cannot figure out how to get the UUID link to a draft via a keyboard shortcut. So, I made this tiny script to get the UUID link to the current draft and copy that link to the clipboard.

I was doing this via Keyboard Maestro but created the script so I could do it from my iPad/iPhone.

Steps

  • script

    // Get the current draft
    let currentDraft = draft;
    
    // Create the UUID link
    let uuidLink = "drafts5://open?uuid=" + currentDraft.uuid;
    
    // Copy the UUID link to the clipboard
    app.setClipboard(uuidLink);

Options

  • After Success Nothing
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.