Drafts Action Directory

Dictate Post

Posted by @nahumck, Last update about 1 month ago - Unlisted

Dictate a new post. Accepts the dictation as text for the draft, applies “writing” and “post” tags, and loads the new draft.

Install

Steps

  • script

    /* --- Dictate Post ---*/
    // script allows you to use the dictation feature of Drafts and create a new post with specified tags
    
    var text = editor.dictate();
    
    var d = Draft.create();
    d.content = "# "+text;
    d.addTag("writing");
    d.addTag("post");
    d.update();
    editor.load(d);
    editor.activate(d);

Options

  • After Success Default
    Notification Info
    Log Level Error
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.