Automator workflow isn’t handing over selected text in PDF from Preview to webpage

I have several Automator workflows with JavaScripts that are handing over selected text to webpages in new browser tabs via shortcuts, like this one:


function run(input, parameters) { return "http://images.google.ch/images?q=" + encodeURI(input) }


This works almost everywhere in macOS, also in Preview for selected Markup text. But it never works in Preview for selected text in PDFs. For some workflows I get a double error message without any further information, for others the focus switches to the browser but nothing else happens. Why could that be?

Posted on Aug 19, 2021 3:19 AM

Reply

Similar questions

3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Automator workflow isn’t handing over selected text in PDF from Preview to webpage

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.