Drafts Action Directory

Copy link to this draft

Posted by @ComplexPoint, Last update 3 months ago

Copy a drafts5:// link (to the current draft) into the clipboard

(There is a UI route to this as well: Information button > DRAFT > Copy link to Draft)

Install

Steps

  • script

    (() => {
        'use strict';
    
        const strURL = draft.permalink;
        
        return (
            app.setClipboard(strURL),
            alert('Copied to clipboard:\n\n' + strURL),
            strURL
        );
    })();

Options

  • After Success Default
    Notification Error
    Log Level Error

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.