Action

Dictate Post

Posted by @nahumck, Last update over 6 years ago - Unlisted

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

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