We are using AppleScript to reveal files from our application in the Finder. If a user has alternatives, e.g., PathFinder, installed as a replacement for Finder, how we can find our what application to tell the AppleScript commands?
You can try using this:
But this assumes that a user with Path Finder prefers it for the reveal functionality.
When a user has configured Path Finder to handle
You can use the following to get a list of processes:
Look for a process named Finder. If not found, the user has no running Finder. Or look for one named Path Finder, and if found, use it instead. Etc.