I'm trying to make automator quick action/service for coping text from images.
It looks like this:
When I run script from automator everything works fine. But when I try to run it from services menu (right click on image > Services > service_name
) then it doesn't work as expected.
The problem is that "Get Selected Finder Items"
returns two copies of the to the image's path. In this case ~/Desktop/t1.png ~/Desktop/t1.png
. I even saved input to the script to a separate file (foo.txt
) to be sure.
So the question is why this happens and how to fix it?