Skip to main content
Question

Working on an update script

  • September 14, 2022
  • 2 replies
  • 0 views

SMR1
Forum|alt.badge.img+13
  • Valued Contributor
  • 218 replies

Just messing around with creating a script with a co-worker. I've seen some previous scripts that when you run them it launches the systempreferences>Software Update. I'm not very good with scripting, so I'm having issues finding what command actually opens the update window. I'm using a modified version of the script here. We did modify it, but the final step where it shuts down never kicks off. Handling macOS Software Updates with Jamf Pro | Babo D's Corner (wordpress.com).

2 replies

Samstar777
Forum|alt.badge.img+11
  • Valued Contributor
  • 134 replies
  • September 14, 2022

Hello @SMR1 

The idea behind this script is that it alerts the user that there are required OS updates that need to be installed. Rather than forcing updates to take place through the command line using “softwareupdate”, the user is encouraged to use the macOS GUI to update. When I say macOS GUI, I’m referring to the Software Update mechanism that Apple refers consumers to: https://support.apple.com/en-us/HT201541

I recommend you to switch towards Nudge and you can find the same here


Forum|alt.badge.img+12
  • Contributor
  • 30 replies
  • September 14, 2022
open "x-apple.systempreferences:com.apple.preferences.softwareupdate?client=softwareupdateapp" will open system preferences to the software update pane if that is what you are trying to accomplish.

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