Applescript?

chris_morelock
New Contributor II

I am trying to make an AppleScript that will place a .app in my users dock based on the org group that they are a part of in Active Directory. For example, a teacher will get a different .app in their dock then a student, because they are part of a different group in Active Directory. Can anyone help me with this? Thanks!

4 REPLIES 4

donmontalvo
Esteemed Contributor III

Why AppleScript, if JSS is able to deploy Dock icons in a policy?

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

--
https://donmontalvo.com

pat_best
Contributor III

Maybe this one?. I personally like to use dockutil for one off dock items per policy scoped to ad groups. It looks like maybe this post uses a script to call up AD group based on the logged in user.

edited: first line was not relevant

bentoms
Release Candidate Programs Tester

@chmorelock07 What's the AppleScript doing?

If it's say... Opening a different URL depending on group membership (student vs teacher), you can build that logic into the AppleScript.app itself & then just deploy the one. :)

chris_morelock
New Contributor II

Thanks guys! I will check out the dockutil. That seems to be a pretty popular option. I will also check out the policy. You guys rock!