Action

Open in DeepL Write

Posted by FlohGro, Last update 9 months ago

UPDATES

9 months ago

improved handling of / in text

created by @FlohGro / more on my Blog

open DeepL Write with the text in the draft to check spelling corrections and rephrasing suggestions.

unfortunately its not possible to pass settings to DeepL (e.g. to prevent rephrasing and only allow it to correct the spelling) right now


If you find this useful and want to support me you can donate or buy me a coffee

Buy Me A Coffee

Steps

  • script

    function generateDeepLURL(inputString) {
        // Encode the input string and replace %2F (/) with escaped version
        let encodedInput = encodeURIComponent(inputString);
    	encodedInput = encodedInput.replace(/\%2F/g, '%5C%2F');
        let deepLURL = "https://www.deepl.com/write#en/" + encodedInput;
        return deepLURL;
    }
    
    let url = generateDeepLURL(draft.content);
    app.openURL(url,true)

Options

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