Action

Task in TickTick (Tomorrow 9AM)

Posted by nicolos, Last update over 5 years 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)

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