Action

insert tickler date

Posted by FlohGro, Last update 19 days ago

created by @FlohGro / more on my Blog

insert tickler date

Prompts you to select a date and appends the string [tickler:YYYY-MM-DD] (where YYYY-NN-DD is the selected date) to the draft.

Can be used to automatically return drafts to the inbox on a certain date together with the inbox todays tickler drafts action.


If you find this useful and want to support me you can donate or buy me a coffee

Steps

  • script

    let prompt = new Prompt();
    
    prompt.title = "Select Tickler Date";
    prompt.addDatePicker("ticklerDate", "", new Date(), { mode: "date" });
    prompt.addButton("OK")
    
    if (prompt.show()) {
        let selectedDate = prompt.fieldValues["ticklerDate"];
        
        // Convert date to YYYY-MM-DD format
        let formattedDate = selectedDate.toISOString().split('T')[0];
        
        let ticklerString = `[tickler:${formattedDate}]`;
        
    	draft.append(ticklerString)
    	draft.update()
    }

Options

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