Last active
August 22, 2017 06:13
-
-
Save smashism/78958fe1880781032bf5 to your computer and use it in GitHub Desktop.
omnigraffle 6 ea
This file contains 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
#!/bin/sh | |
# | |
# originally by jhbush jamfnation and macadmins slack #jamfnation | |
# modified by emilyk | |
# 2015-08-20 | |
# | |
currentUser=`ls -l /dev/console | awk {' print $3 '}` | |
if [ -d "/Applications/OmniGraffle.app" ]; then | |
result=`cat /Users/$currentUser/Library/Containers/com.omnigroup.OmniGraffle6/Data/Library/Application\ Support/Omni\ Group/Software\ Licenses/OmniGraffle*.omnilicense | grep -A 1 Key | grep string | sed 's/<string>//g' | sed 's/<\/string>//g' | awk '{print $1}'` | |
echo "<result>$result</result>" | |
else | |
echo "<result>Not Installed.</result>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment