Action

Append to Draft

Posted by agiletortoise, Last update over 5 years ago

Prompt to select and existing draft, append the contents of the current draft to the selected draft.

Steps

  • script

    // select and existing draft
    // append current draft to it
    
    let f = () => {
    	// select an existing draft
    	let d = app.selectDraft();
    	if (!d) {
    		return false;
    	}
    	
    	// append current draft
    	d.content = d.content + "\n" + draft.content;
    	d.update();
    	return true;	
    }
    
    if (!f()) {
    	context.cancel();
    }
    

Options

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