AppleScript search and display photos
Having read several basic guides to AppleScript and got several simple scripts working successfully I am stuck on what I wanted to do.
I am using NeoFinder to pass the name of a file to Photos (it does exist there) for editing. The Photos Dictionary says that using the 'search for' command operates precisely the same way as typing the text in the Photos search window. I can pass the text from NeoFinder and get Photos to display it to conform that it is there, and I can use that in a simple command (search for inputname) that appears to work. But even though Photos comes to the front it does not display the search results.
The spotlight command is then needed to display the found image, but the using 'media item' as the selection just displays the an item from the main catalog, not from the search items (supposedly) retrieved. Using 'spotlight selection' does display the last image selected, but I want to display the first image from the search result.
Any suggestions?