![]() So maybe just put a loop in the dockutil section of your script. It seemed that after the second run the dock would be set properly. I believe the solution we used was to run the dockutil commands more than once. I believe that this person felt like it was a timing issue. ![]() Sometimes the dock would not be modified, other times the dock would be partially modified. But I recall that the staff member who set it up did experience issues with reliability. Even that's not 100% perfect in my tests, but it's a fair bit better than trying to run it entirely in a Jamf policy script payload. That seems to be the most consistent way to make it work. What has worked for me more reliably than others is to do as you said, to generate a local script with all the items in it, and run that script as the logged in user. The Dock is notoriously difficult to manage and manipulate and Apple hasn't made it any better over the years. However, I consider it more Apple's fault than the developer. Wish I could say dockutil was 100% reliable, but it just isn't. Sometimes only a few icons show up (until a log out/restart), sometimes no icons appear other than Finder and Trash, sometimes it works perfectly. Dockutil also works kind of inconsistent for me in my testing. That being said, I don't have a good answer. Adding a sleep might help, but I wouldn't count on it. $du -add '/Applications/Adobe Photoshop CS6/Adobe Photoshop CS6.app' -position 12 -no-restart $userHomeĮxit His script is already waiting for the Dock to be running, right at the top, so I don't think it's because it's firing too soon. $du -add '/Applications/Mavis Beacon Teaches Typing.app' -position 11 -no-restart $userHome $du -add '/Applications/Lego Digital Designer.app' -position 10 -no-restart $userHome $du -add '/Applications/Photo Booth.app' -position 9 -no-restart $userHome $du -add '/Applications/Google Earth.app' -position 8 -no-restart $userHome $du -add '~/Downloads' -section others -position last -no-restart $userHome $du -add "/Applications/Thinkin' Things 1/Thinkin' Things 1.app" -position 7 -no-restart $userHome $du -add '/Applications/The Print Shop 2.app' -position 6 -no-restart $userHome $du -add '/Applications/FableVision/Stationery Studio/Stationery Studio 1.2.app' -position 5 -no-restart $userHome $du -add '/Applications/Doozla.app' -position 3 -no-restart $userHome $du -add '/Applications/Comic Life 3.app' -position 4 -no-restart $userHome $du -add '/Applications/Safari.app' -position 2 -no-restart $userHome $du -add '/Applications/Google Chrome.app' -position 1 -no-restart $userHome #Function for applying dock configuration User=$(python -c 'from SystemConfiguration import SCDynamicStoreCop圜onsoleUser import sys username = (SCDynamicStoreCop圜onsoleUser(None, None, None) or ) username = ] (username + " #Get the current logged in user that we'll be modifying #We need to wait for the dock to actually start I would be enormously grateful to anyone who can help me with this. Super odd thing is the script works fine when run via UNIX via ARD, when it runs as a policy it does not apply all items, it does recognize the logged in user. (One policy per limited to user, I found having one policy with several limited to users was problematic.) ![]() It works sporadically/unpredictably when deployed as a policy via Jamf (scoped to a group of computers, set the run at login "once per user per computer" and limited to LDAP user. Finding a way to have each of these user accounts to get a custom dock has been a nightmare (tired built in Jamf tools: policies and config profiles). i have another shortcut that simply reuploads the text from this text file to DataJar.So, in our environment we have a Mac lab used by elementary students (PreK-3), there's a single login for each class. I keep this list as a text file in IA writer, so I can add, move and change which items show up, all from one text file. If not, it passes the name to a “Run Shortcut” action. The shortcut filters this list by that number, deletes all text before the first letter, and builds a list to choose from.Īfter I chose an item from list, if the chosen item ends with “_ ,” it removes it and passes that name to an “Open App” action. Then it pulls a list from data jar (which is currently): 234: Things: Phone My master shortcut generates a number from 1-6, based on time and location. It will present a different menu, based on variables like wifi and time.īut, I have some of the same shortcut actions showing up in multiple menus, and changing/adding/moving and organizing was hard to keep track across multiple menus, so I wanted to simplify things. While I don’t have an action button, I have a shortcut in my doc that is similar. Maybe this is so 2021 to everyone else, but it’s recently made my life easier: Listening to episode 139, which was great, and inspired me to share this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |