Action

Copy link to this draft

Posted by @ComplexPoint, Last update over 5 years 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)

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
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.