Skip to content

Instantly share code, notes, and snippets.

@dderusha
Created July 9, 2015 14:50
Show Gist options
  • Save dderusha/8a50983ab967017f8430 to your computer and use it in GitHub Desktop.
Save dderusha/8a50983ab967017f8430 to your computer and use it in GitHub Desktop.
Enter iBeacon printer zone, notify user using CocoaDialog
#!/bin/bash
#Created By Dan De Rusha Damon O'Hare 4-22-15
#
## we have cocoaD installed in our Utilities directory
#
CD="/Applications/Utilities/cocoaDialog.app/Contents/MacOS/cocoaDialog"
#
### Answer to install - Yes triggers the policy scoped with the custom trigger xeroxCorp5875
rv=$($CD yesno-msgbox --no-cancel --text "Do you want to install Xerox Corp 5875?")
if [ "$rv" == "1" ]; then
echo "Yes"
jamf policy -trigger xeroxCorp5875
elif [ "$rv" == "2" ]; then
echo "No, Don't Have time to Install Xerox 5875"
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment