I've been running into issues over the years with how to best alert users to our installations. Our users wants notice before and after each install. Fair enough. We usually update when a user logs in but we also sometimes install at startup, before any user logs in. After trying applescript and growl (both of which cannot handle messaging if a user isn't logged in, we switched over to jamfHelper. Which has been great.
The idea: use a fullscreen message/lockout during the install, and a second "sticky" utility window after the install is complete, forcing the user to click "OK" and confirm the message.
The problem: jamfHelper makes our mouse/trackpads/keyboards function oddly. The keyboards lose functionality and all clicks get interpreted as right clicks. Bummer. After working on a few solutions to kill jamfHelper, I learned that I also need to kill system events. Below is the script we now use on all installations.
What happens before this script is a jamfHelper call to pop up a fullscreen alert. What happens after this script is a SECOND jamfHelper call to pop-up a utility window alert that forces the user to click a button. The sleep calls are so that the commands don't over-run one another.
Hope this helps the community.
#!/bin/bash
# script used to reset user's I/O devices when running jamfHelper twice in a policy
sleep 5
sudo killall jamfHelper ## kills the process
sleep 2
sudo killall System Events ## kills the wonky I/O issues
sleep 2
exit 0
