Re: Spotlight search notification?
Re: Spotlight search notification?
- Subject: Re: Spotlight search notification?
- From: Vince DeMarco <email@hidden>
- Date: Mon, 10 Apr 2006 15:21:16 -0700
On Apr 9, 2006, at 3:13 PM, Adam Leonard wrote:
I am writing a little app that needs to keep track of spotlight
searches from the spotlight menu all the time. I know that it puts
the search terms on the find pasteboard, so getting that is no
problem.
What I am trying to figure out is how to know when a spotlight
search is performed so I can check the pasteboard. As always, I
want to avoid polling if possible.
It doesn't look like any distributed notifications are posted, so
thats not an option
This might just not be possible as of now, but does anyone have any
ideas?
You could do this using the accessibility API, and just listen for
changes when searches start and stop.
No distributed notifications get sent when a search starts or stops.
Vince
Thanks,
Adam Leonard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden