Drafts Action Directory

Add Clipboard to Fantastical

Posted by SingleItemStore, Last updated: 2018-05-27 15:53:46 UTC
Install

Steps

  • script

    var clip = app.getClipboard();
    
    var baseURL = "fantastical2://x-callback-url/parse/?sentence=" + encodeURI(clip);
    
    const cb = CallbackURL.create();
    cb.baseURL = baseURL;
    
    
    if (cb.open()) {
    	console.log("success");
    } else {
    	context.fail();
    }
    
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.