• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: fileExistsAtPath with * to indicate random
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fileExistsAtPath with * to indicate random


  • Subject: Re: fileExistsAtPath with * to indicate random
  • From: "Herb Petschauer" <email@hidden>
  • Date: Mon, 10 Mar 2008 12:13:28 -0700

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@hidden> 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@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >fileExistsAtPath with * to indicate random (From: "Mr. Gecko" <email@hidden>)
 >Re: fileExistsAtPath with * to indicate random (From: Brian Stern <email@hidden>)
 >Re: fileExistsAtPath with * to indicate random (From: John Stiles <email@hidden>)

  • Prev by Date: Re: No track index in iTunes SB?
  • Next by Date: Re: fileExistsAtPath with * to indicate random
  • Previous by thread: Re: fileExistsAtPath with * to indicate random
  • Next by thread: Re: fileExistsAtPath with * to indicate random
  • Index(es):
    • Date
    • Thread