How to find an application by its OSType signature ?
09/07/03 22:47
NSWorkspace provides applicationForFile but this not what I a looking for…
The solution is in LaunchServices.h: LSGetApplicationForInfo.
CFURLRef urlToApp;
FSRef appFSRef;
OSStatus err = LSGetApplicationForInfo(kAnyFileType, signature, kAnyExtension, kLSRolesAll, NULL, &urlToApp);
CFURLRef urlToApp;
FSRef appFSRef;
OSStatus err = LSGetApplicationForInfo(kAnyFileType, signature, kAnyExtension, kLSRolesAll, NULL, &urlToApp);