Skip to content
Discussion options

You must be logged in to vote

Hi @rlandgraf2, Mac@IBM Notifications print the user input right before the exit of the process so you can easily catch it.
This is an example:

#!/bin/bash

# Required for executing a popup to the user space via an MDM depoloyment
CURRENTUSER=$(ls -l /dev/console | awk '{print $3}')

# Mac@IBM Notifications binary paths
NA_PATH="/Applications/Mac@IBM Notifications.app/Contents/MacOS/Mac@IBM Notifications"

# Variables for the popup notification for ease of customization
WINDOWTYPE="popup"

INPUT=$(sudo -u "${CURRENTUSER}" \
        "${NA_PATH}" \
        -type "${WINDOWTYPE}" \
        -title "Test input accessory view" \
        -accessory_view_type input \
        -accessory_view_payloa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SMartorelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants