Extension Attribute for Sassafras KeyServer Clients

ernstcs
Contributor III

The following script seems to work for version 6.2. I'm wondering if someone out there on version 7 can verify that it works for it as well. I had issues with package receipt information being inaccurate so now I'm actually looking for the app info since it's not in a standard location and I don't want to add the Library folder to the paths.

#!/bin/bash

keyserver=`/bin/cat /Library/KeyAccess/KeyAccess.app/Contents/Info.plist | grep -B 1 -m 1 CFBundleDevelopmentRegion | grep string | sed 's/.*<string>(.*)</string>.*/1/'`

echo "<result>$keyserver</result>"
1 REPLY 1

ernstcs
Contributor III

Actually, I like this version better, modified from bentoms silverlight version.

#!/bin/sh

if [ -e /Library/KeyAccess/KeyAccess.app ]; then
result="$(/usr/bin/defaults read /Library/KeyAccess/KeyAccess.app/Contents/Info CFBundleVersion)"
echo "<result>$result</result>"
else
echo "<result>Not Installed</result>"
fi