The Addigy Self Service application, called MacManage.app, provides two options for sending prompts to your end-users.

    1. A larger screen prompt, where you'll have space for an extended description.

    2. A slick notifier that appears on the top left. Similar to Apple's native notifications.       


Large In-App Prompt

Below is an example command on prompting the end user with a restart message using our larger notifier that displays with a MacManage application window.


#!/bin/bash
/Library/Addigy/macmanage/MacManage.app/Contents/MacOS/Electron sidebar=false action=promptAction message="For performence we ask that you reboot your machine."



Badge Notification Prompt

To send a badge notification to an end-user, use this format instead.


#!/bin/bash
/Library/Addigy/macmanage/MacManage.app/Contents/MacOS/MacManage action=notify title="Reboot Required for Update" description="Your administrator is attempting to update your system and a reboot is required." closeLabel="Later" acceptLabel="Restart" timeout=6000


(This will appear with your organization's logo if it is configured in the Addigy client general settings.)


Example Prompt Template

You can copy this example prompt into your Addigy Saved Scripts section from the Community Scripts: https://prod.addigy.com/#/macmanage/community/scripts/5c7dddd283eb3a9323383744.


#!/bin/bash

# Modify these strings to change the verbiage in the badge notification.
title="My Notification"
description="Something to say to my users"
acceptText="Okay!"
closeText="No, thanks."

# Time before the notification times out, in seconds
timeOut="600"

# This if statement should not need to be changed. It simply uses the variables
#   above.
if /Library/Addigy/macmanage/MacManage.app/Contents/MacOS/MacManage action=notify title="${title}" description="${description}" closeLabel="${closeText}" acceptLabel="${acceptText}" timeout="$timeOut"; then
    # These commands can be changed to detemine what happens when the user
    #   clicks the "Accept" label.
    say "Accept label clicked"
    exit 0
else
    # These commands can be changed to detemine what happens when the user
    #   clicks the "Close" label.
    say "Close label clicked"
    exit 1
fi


In the example above, a command can be run based on the user's interaction with the badge notification. The if statement returns true if the user clicks the Accept label and false if the user clicks the Close label.