View Single Post
Quote:
Originally Posted by psidnell View Post
checks both locations ... stopping on the first match.
For edge cases where both locations exist (i.e, where installation history has been complex – retreats from the AppStore, multiple testing versions etc) you can use an osascript system call to get the bundle name of the active installation, and use this to decide whether to look in the .MacAppStore folder or the vanilla OF folder.

Something like:

Code:
tell application "Finder" to id of application file id "OFOC"
will either return:
  1. com.omnigroup.OmniFocus
  2. com.omnigroup.OmniFocus.MacAppStore, or
  3. an error if neither is installed.

FWIW there's more on first-aid for the appstore version at:

http://forums.omnigroup.com/showthread.php?t=21496