Created
October 7, 2014 21:16
-
-
Save stevenschobert/3cc2623871793bd0ac2b to your computer and use it in GitHub Desktop.
Tests if an application is installed on your system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try | |
| set targetApp to application "APPNAME" | |
| properties of targetApp | |
| on error errorMessage | |
| if errorMessage contains "application" then | |
| error | |
| else | |
| return true | |
| end if | |
| end try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment