Executing Preview from a command line and use the find instruction
I have PDF documents that I want to display with Preview and find a string inside. I can use a script command like this to display the file:
osascript -e 'tell application "Preview"' -e'activate' -e 'open POSIX file "/Users/me/Downloads/something.pdf"' -e ' end tell'
But I don't know how to add the Find command to highlight some words in the displayed PDF.
Can someone please give me an advice?
Thank you all!
MacBook Pro 13″, macOS 14.2