• 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: Searching for multiple instances of an application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching for multiple instances of an application?


  • Subject: Re: Searching for multiple instances of an application?
  • From: Karl Kuehn <email@hidden>
  • Date: Mon, 7 Jul 2008 15:39:48 -0700

On Jul 7, 2008, at 3:35 PM, Paul Miller wrote:

I'm working on an Installer plugin that will install my stuff into multiple copies of Photoshop (ie Photoshop CS1, CS2, CS3, CS4, etc). So I want to search for and find all copies of an application named "Photoshop" with a certain signature. I think LSGetApplicationForInfo() will only get me the "default" one.

What's the best way to search for ALL of them, noting that they might not all be in /Applications?


You probably want to use Spotlight (if you can afford to go 10.4 and above). You can do this in a script with mdfind. Building the right find command can be a bit of an art, but you probably will only want to look for applications with a name matching a pattern. But you can do more, and even find things where the user has changed the outside "name".

--
		Karl Kuehn
			email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Searching for multiple instances of an application?
      • From: Paul Miller <email@hidden>
References: 
 >Searching for multiple instances of an application? (From: Paul Miller <email@hidden>)

  • Prev by Date: Searching for multiple instances of an application?
  • Next by Date: Re: Searching for multiple instances of an application?
  • Previous by thread: Searching for multiple instances of an application?
  • Next by thread: Re: Searching for multiple instances of an application?
  • Index(es):
    • Date
    • Thread