forked from jamf/Jamf-Nation-Extension-Attributes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Flip4Mac Version.xml
27 lines (27 loc) · 1.07 KB
/
Flip4Mac Version.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="UTF-8"?>
<extensionAttribute>
<displayName>Flip4Mac Version</displayName>
<description/>
<dataType>string</dataType>
<scriptContentsMac>#!/bin/sh
#
############################################################################
#
# Extension Attribute checks to display Flip4Mac Version with Release number.
#
# Uses CFBundleShortVersionString because this is the "release version number of the bundle"
# Ref: https://developer.apple.com/library/IOS/#documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
#
#
############################################################################
#
if [ -d /Applications/Flip\ Player.app ] ; then
RESULT=$( sudo defaults read /Applications/Flip\ Player.app/Contents/Info CFBundleShortVersionString )
echo "<result>$RESULT</result>"
else
echo "<result>Not Installed</result>"
fi
</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>