Skip to main content
Solved

User notifications from script


Forum|alt.badge.img+4

Dear JAMF friends,

I wrote a script which users can run via the selfservice/policy. This script takes a long time to finish because i need to fetch several GBs from a server. Since there is some waiting time involved i'd like to give my users a popup notification like, 'your data is downloading', 'your data is extracting'.

The jamf binary has those capabilities because it's able to give the cool transparent popups, and it would be awesome to use those in my script.

Can give anyone an enlightening hint?

Many thanks :)

Best answer by jpfromdc98

You could utilize the jamfhelper throughout your script to convey messages. I would recommend searing throughout the discussions for jamfhelper messages or things along those lines.

This particular discussion thread helped me.

https://jamfnation.jamfsoftware.com/discussion.html?id=9848

If you're like me and want to get a pinch more creative, you could add graphics in there to create a make-shift loading bar.

View original
Did this topic help you find an answer to your question?

6 replies

Forum|alt.badge.img+9
  • Contributor
  • 23 replies
  • Answer
  • July 7, 2015

You could utilize the jamfhelper throughout your script to convey messages. I would recommend searing throughout the discussions for jamfhelper messages or things along those lines.

This particular discussion thread helped me.

https://jamfnation.jamfsoftware.com/discussion.html?id=9848

If you're like me and want to get a pinch more creative, you could add graphics in there to create a make-shift loading bar.


Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • July 7, 2015

Have you looked at scripts that use cocoaDialog at all? There are plenty of them posted here on JAMFNation. cocoaDialog has a programmable 'progress bar' mode that can update the text in the dialog as different parts of the script take place and can even show real progress if its scripted correctly.
Although you can use built in tools like jamf binary or jamfHelper, using those to update regular "progress" aren't really their fortes.


Forum|alt.badge.img+9
  • Contributor
  • 125 replies
  • July 7, 2015

+1 for cocoaDialog. The project is no longer maintained, but it still works.


Forum|alt.badge.img+13

I use a branded terminal-notifier for things like this for a more native feel.


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 13 replies
  • July 7, 2015

I just found out about jamfhelper :)
I know about cacaoDialog but it's nicer to use software which is installed already


  • 0 replies
  • July 7, 2015

There's also Yo which is a Swift app to create native Notification Center messages - same thing though, requires some effort and adds complexity to scripting.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings