Automator service won't work in preview because of input

Joined
Mar 19, 2020
Messages
1
Reaction score
0
Hi,

I want to search a text that I highlight in preview with google using the chrome browser. I learnt, that the function from the context menu 'search google for ...' can't be tricked into using another browser than safari. What I tried then is to set up a new service in automator that does just what I want. The problem however is that even the default method stub:

on run {input, parameters}
(* Your script goes here *)
return input
end run

results in two windows opening when done executed in preview:
The "test" service could not be used.
and:
There was a problem with the input to the Service.

I changed the input of the script from text, to formatted text to everything else under text but it still won't work in preview. If I choose text as input, it works in other applications, like chrome itself.

Really hope someone could help me with that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top