Action

Send to Bear silently

Posted by Kelly, Last update about 3 years ago

Send draft to Bear Notes silently in background

Steps

  • script

    // create a local file in App documents
    let method = "execute";
    let script = `on execute(content)
        	do shell script "/bin/bash -c \\\\"open -gj \\\\\\\\\\\\"bear://x-callback-url/create?show_window=no&text=" & content & "\\\\\\\\\\\\"\\\\\""
    end execute`;
    
    let runner = AppleScript.create(script);
    runner.execute(method, [encodeURIComponent(draft.content)]);

Options

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