Find applications by creator

Does any one knows a way (osax, terminal,…) to get the path of any app. by its creator code ?
Something like ‘path to’ command for folders.

Thanks.

Hi Jonas,

this script returns the full path as string:

tell application "Finder"
set thePath to application file id "GKON" as stringend tell

BTW: ‘GKON’ is the creator code of GraphicConverter.

Yes! I knew this… But forgot it…
Thank you for refresh :wink:

And now: if I have several versions of an app with the same code ?

ie: Xpress 3, 4, 5, 6 are all “XPR3”. How to make a list of all of them ?

TIA

The code below assumes that the different versions are all in folders whose names contain “Xpress” and which are in the Applications folder. You can easily adapt it for your personal, or for more general, use:

set appsFolder to path to "apps"

tell application "Finder"
  try
    set thePaths to (every application file of entire contents of (every folder of appsFolder whose name contains "Xpress") whose creator type is "XPR3") as alias list
  on error
    set thePaths to (first application file of entire contents of (first folder of appsFolder whose name contains "Xpress") whose creator type is "XPR3") as alias
  end try
end tell

set astid to AppleScript's text item delimiters
set AppleScript's text item delimiters to ASCII character 1
set thePaths to (thePaths as string)'s text items
set AppleScript's text item delimiters to astid

return thePaths