Drafts Action Directory

Task in TickTick (Tomorrow 9AM)

Posted by nicolos, Last update 3 months ago

This action will add your draft as a task in TickTick using the first line as the title, any tags you may be using and the following lines of text as the body.
It also uses some simple scripting to make the task be added to the next day at 9AM (you can change this in the script)

Install

Steps

  • script

    // http://getdrafts.com/scripting
    let tomorrow = Date.today().addDays(1);
    let s = strftime(tomorrow, "%Y-%m-%d");
    let news = s.concat("T08:00:00.000+0000");
    draft.setTemplateTag("tomorrow", news);
    // now steps after this one can use [[tomorrow]] tag
    
  • url

    template
    ticktick://x-callback-url/v1/add_task?title=[[title]]&content=[[body]]&tags=[[tags]]&startDate=[[tomorrow]]
    useSafari
    false
    encodeTags
    true

Options

  • After Success Default
    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.