Send to Bear silently

Posted by Kelly, Last update almost 3 years ago

Send draft to Bear Notes silently in background


  • 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)]);


  • 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.