Re: Handling open as a result of spotlight search
Re: Handling open as a result of spotlight search
- Subject: Re: Handling open as a result of spotlight search
- From: The Karl Adam <email@hidden>
- Date: Thu, 5 May 2005 20:43:49 -0400
Ondra, you didn't read the document linked, which has clear guidelines
for what to do when the value is available. It clearly states that when
your application is launched as a result of a spotlight result you
should make a best effort attempt to highlight the relevant term they
were searching for.
"The application should make a reasonable effort to indicate occurrences
of the search text in each opened document—for example by scrolling
the text into view."
http://developer.apple.com/documentation/Cocoa/Conceptual/Scriptability/Concepts/ScriptabilityOverview.html
This is one of those "little things" that seperates a good Mac OS X
citizen from the piles of software that are merely acceptable or good
enough. If you feel that that the convenience that implementing this
provides is too little for the "effort" involved in supporting it, then
we obviously disagree as far as following the HI guidelines, and User
Interface in general.
If the file they searched for happens to be several pages long it
stands to reason that the subject of their quiery is not on the first
page. Lastly while Cmd-G might be easy to do, if the application knew
that's why It was launched for in the first place, why is the onus on
the user to then search again?
-Karl
On 5/5/05, Ondra Cada <email@hidden> wrote:
Karl,
On 6.5.2005, at 0:03, The Karl Adam wrote:
> Preview.app has the ability to discern when a spotlight search led to
> it's being launched and then puts that into it's search box and
This one should work automatically for you without any special coding
*at all*, if you use the Find pasteboard the proper way.
> highlights the first occurence of the string searched for.
To do this, you probably should check whether the application was
launched a special way... not sure.
Anyway, personally I think that highlighting automatically the first
occurrence is *not* worth the effort: all the user needs to get the
result is just one keypress (Cmd-g), so there is no point in making
this action much easier :)
It would be somewhat different if you wanted to perform some more
complex action, based on the search string.
---
Ondra Čada
OCSoftware:
email@hidden
http://www.ocs.cz
private
email@hidden
http://www.ocs.cz/oc
_______________________________________________
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