With a datapoint of one X11 application (Wireshark.app) If I double click on a pcap file, LS does actually launch X11 and runs Wireshark(although the file doesn't actually get opened by Wireshark but that is a different conversation).
mdfind "kMDItemKind == 'Application'" also finds Wireshark. So, ImageMagick _may_ be identified as an application by LS (I ran my test on exactly one MBP running 10.4.11). Failing that, you could try an MDQuery (assuming Spotlight is running). Cheers, -H. On 10/03/2008, John Stiles <[EMAIL PROTECTED]> wrote: > In general this is excellent advice, but I believe ImageMagick is not a > Mac program but an X11 thing. > > Brian Stern wrote: > > > > On Mar 10, 2008, at 12:10 PM, Mr. Gecko wrote: > > > >> I'm needing my application to find out if ImageMagick is installed. > > > > You should look at Launch Services. This Carbon API will tell you the > > application that will open for a given document or kind of document. > > > > "The Launch Services function LSFindApplicationForInfo locates an > > application based on its name, creator signature, bundle ID, or any > > combination of these characteristics." > > > > Look at LSGetApplicationForInfo, LSFindApplicationForInfo, > > LSGetApplicationForURL and related APIs. > > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/bogvardi%40gmail.com > > This email sent to [EMAIL PROTECTED] > _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
