Skip to content

Instantly share code, notes, and snippets.

@jtbrough
Created July 22, 2013 01:33
Show Gist options
  • Save jtbrough/6050761 to your computer and use it in GitHub Desktop.
Save jtbrough/6050761 to your computer and use it in GitHub Desktop.
getAppName()
on getAppName()
tell application "Finder"
try
try
set appName to name of application file id "com.smileonmymac.PDFpenPro"
on error
try
set appName to name of application file id "com.smileonmymac.PDFpen"
on error
try
set appName to name of application file id "com.smileonmymac.PDFpenPro.MacAppStore"
on error
set appName to name of application file id "com.smileonmymac.PDFpenPro6.MacAppStore"
end try
end try
end try
end try
end tell
return appName as string
end getAppName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment