Created
July 9, 2015 14:50
-
-
Save dderusha/8a50983ab967017f8430 to your computer and use it in GitHub Desktop.
Enter iBeacon printer zone, notify user using CocoaDialog
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/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