Shell script to get path of application in MacOS

Here is a shell script that finds an application on my hard drive using a nifty call to Finder using AppleScript: ?View Code BASH#!/bin/sh   result=`exec osascript <<EOF tell application "Finder" set thePath to (POSIX path of (path to application "Doxygen")) end tell EOF`   echo $result

Adobe Scripting Additions

I’ve been getting warning messages in my Console log stating the “Adobe Unit Types.osax” has deprecated functions. Then, when I starting scripting Xcode with AppleScript, I’ve been getting a bunch of errors about the above listed library. Well, Adobe had something to say about that: