Drafts Action Directory

Append to Draft

Posted by agiletortoise, Last update 5 months ago

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

Install

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

Comments

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