Re: setting Finder search input

2022-12-13 Thread Torsten Curdt via Cocoa-dev
> Is it not enough to use NSWorkspace’s showSearchResultsForQueryString? > I need to see what queries this allows. (IIRC there were two different ways to specifying search queries) But this looks perfect! I didn't realize this was available on NSWorkspace. Thank you so much. I'll report back whe

Re: setting Finder search input

2022-12-13 Thread Alex Zavatone via Cocoa-dev
This might be an actual good application of launching a compiled AppleScript or even an Automator action. I seem to remember making terminal applications in Xcode. I wonder if you could do that with an AS-OC script and then just call the application within your bundle to Activate the Finder

Re: setting Finder search input

2022-12-13 Thread Alex Zavatone via Cocoa-dev
Is it reasonable to use an AppleScript to do it? Back in the olden days, I used AS-OC to automate Illustrator, Photoshop, the Finder, TextEdit and ImageOptim all in one compiled application. AS-OC is AppleScript-Objective-C Cheers, Alex Zavatone > On Dec 13, 2022, at 2:22 PM, Rob Petrovec via

Re: setting Finder search input

2022-12-13 Thread Steve Mills via Cocoa-dev
> On Dec 13, 2022, at 14:11, Torsten Curdt via Cocoa-dev > wrote: > > I would like to open a Finder window with a pre-filled search filter and > search results - but I just cannot find a good way to do it. I tried to > find a way through the Scripting Bridge but it seems like this is not > expo

Re: setting Finder search input

2022-12-13 Thread Torsten Curdt via Cocoa-dev
Thanks for the help, Rob Is it always going to be the same search? If so, you could create a Saved > Search in the Finder and include it with your app. Then when you want to > bring up the search you can open the Saved Search bundle and it will open > in the Finder. Hope that helps. > I was ho

Re: setting Finder search input

2022-12-13 Thread Rob Petrovec via Cocoa-dev
Is it always going to be the same search? If so, you could create a Saved Search in the Finder and include it with your app. Then when you want to bring up the search you can open the Saved Search bundle and it will open in the Finder. Hope that helps. —Rob > On Dec 13, 2022, at 1:10 PM, T

setting Finder search input

2022-12-13 Thread Torsten Curdt via Cocoa-dev
I would like to open a Finder window with a pre-filled search filter and search results - but I just cannot find a good way to do it. I tried to find a way through the Scripting Bridge but it seems like this is not exposed at all. Any other suggestions? cheers, Torsten ___