title: How to get the Location of an Application installed in Mac OS X using Package Manager?
body: <p>I am trying to create an installer using Package Maker, which installs a plugin into App's sub-directory. I can create a simple "If File Exists" to see if the Application Bundle (".app") exists at the default location. But, How do I know the location if the user changes the location? </p>
  
  <p>I know that using Applescript we can obtain the location using the Bundle identifier. But for this application there can exist multiple versions with the same Bundle Identifier (like Adobe Photoshop) and I have to install the plugin files for all the versions. What's a good solution for this problem? </p>
  
  <p>EDIT: I have just found out a way of getting all the Applications' locations using LocationServices tool "lsregister" from the terminal. I assume thats the way to go. If you have a better way of doing it, let me know.</p>