Action

Run this first!

Posted by tommertron, Last update over 3 years ago - Unlisted

Work in progress action to populate a Things project list in Drafts.

Steps

  • prompt

    promptKey
    prompt
    promptTitle
    Instructions
    promptMessage
    This action helps you set up the "Pick a Project" and "Make a Project" actions.
    
    First, you should have a draft created containing only a list of your Projects or Areas in things. If you haven't ceated that, please cancel this prompt and go create it. If you have, please click OK to go to the next step where you'll pick the draft containing your projects list.
    promptButtons
    OK
    includeTextField
    false
    textFieldDefault
    includeCancelButton
    true
  • script

    let d = app.selectDraft(app.currentWorkspace)
    
    let e = Draft.create();
    e.content = "thingsforthingsreference95178954651d\n"+d.uuid+"\n\nHi there!\nThis draft was created as a reference for the \"Pick a Project\" and \"Make a Project\" actions. Its function is to hold the UUID of your draft containing a list of Things projects. Please don't delete this note if you want those actions to still function properly. You might want to just archive it and forget about it.";
    e.update();

Options

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