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

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

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 >

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

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,

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

Re: Proper way to retrieve the NSScreenNumber in a screen saver ?

2022-12-13 Thread Steve Mills via Cocoa-dev
> On Dec 13, 2022, at 13:50, Gabriel Zachmann via Cocoa-dev > wrote: > > I am not interested in detecting whether or not my screensaver is running in > System Prefs preview. > > I am interested in the *screen* on which I am running, irrespective of > whether it's inside System Prefs or as a

Re: Proper way to retrieve the NSScreenNumber in a screen saver ?

2022-12-13 Thread Gabriel Zachmann via Cocoa-dev
> > I mentioned somewhere in one of my replies that you know when it?s being run > in the System Prefs preview because isPreview is passed to the main entry > point. > > I am not interested in detecting whether or not my screensaver is running in System Prefs preview. I am interested in the