Drafts Action Directory

Add Clipboard to Fantastical

Posted by SingleItemStore, Last update 3 months ago
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();
    }
    

Options

  • After Success Default
    Notification Info
    Log Level None

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.