Action

Fetch contents of # Tot Dot

Posted by David Blue, Last update about 2 years ago

UPDATES

about 2 years ago

Fix tag assign.

Fetches content from the specified Dot in Tot via Applescript to a new draft.

tell application "Tot" to open location "tot://[#]/content”

Steps

  • prompt (macOS only)

    promptKey
    prompt
    promptTitle
    Dot
    promptMessage
    Specify the Tot Dot to fetch from by number. (1-7)
    promptButtons
    OK
    includeTextField
    true
    textFieldDefault
    7
    includeCancelButton
    true
  • runAppleScript (macOS only)

    -- AppleScript content
    -- Editing and testing in Script Editor recommended
    on execute(draft)
        tell application "Tot" to open location "tot://[[prompt_text]]/content"
    end execute
  • script (macOS only)

    let d = Draft.create();
    d.content = context.appleScriptResponses[0];
    d.update();
    
    editor.load(d);

Options

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