Launch a Spotlight Search From Your Application
· Oct 5, 11:05 AM
A handy little Mac OS function, HISearchWindowShow, allows you to open a Spotlight search window and perform a search from within your application.
soft declare function HISearchWindowShow lib “Carbon.framework” (inSearchString as CFStringRef, inOptions as UInt32) as Integer
const kNilOptions = 0
dim OSError as Integer = HISearchWindowShow(“foo”, kNilOptions)