I use Spotlight to check image files that are named after product SKUs.
I have searched the web for an AppleScript that can do nothing more than execute the search with the contents of the clipboard, but cannot find a solution.
All I need is a script that will paste the contents of the clipboard into the magnifying glass (Spotlight). That’s it. I don’t want to resort to involving keyboard commands that activate Spotlight, because I have too many other live macros on my system via Keyboard Maestro.
I plan to connect the script to a FileMaker button, and the action will be to copy the SKU from its field and execute the AppleScript that has Spotlight do the search.
I need to add that I only want to LOOK at the results - I do not want to do anything with them. A quick glance at what shows up is enough for my purposes.
thanks in advance for any help.
Model: MacPro 5,1
AppleScript: 2.5
Browser: Safari (12607.1.40.1.5)
Operating System: macOS 10.12