Skip to main content
Question

Open sub window of Software Update from command line?


JevermannNG
Forum|alt.badge.img+8

Under macOS Monterey Clients get the 12.6.4 and 13.3 Software offered in the Software Update preferences. In the past I used the following command in my bash scripts to open that window:
open /System/Library/PreferencePanes/SoftwareUpdate.prefPane

But this opens only the main Software Update window:

How can I open the sub window "Weitere Infos ..." from the command line that shows the macOS Monterey Update:

2 replies

Forum|alt.badge.img+14
  • Honored Contributor
  • 408 replies
  • March 31, 2023

You could theoretically do this with AppleScript and build off what others have done already, but PPPC makes this more difficult these days as Accessibility permissions are required.

https://www.alansiu.net/2020/04/08/using-applescript-to-install-macos-software-updates-via-system-preferences/

https://stackoverflow.com/questions/42231133/use-applescript-to-list-the-names-of-all-ui-elements-in-a-window-gui-scripting?ref=sudoade

Having said that, I have had reasonable success sharing this annotated screenshot with our end-users via email or using swiftDialog and embedding the image inside an "Install updates now" prompt:

https://snelson.us/2023/03/display-message-0-0-7-via-swiftdialog/

You could also use tools such as Nudge or SUPER to achieve something similar.

Hope this helps!

 


JevermannNG
Forum|alt.badge.img+8
  • Author
  • Valued Contributor
  • 136 replies
  • April 3, 2023
jtrant wrote:

You could theoretically do this with AppleScript and build off what others have done already, but PPPC makes this more difficult these days as Accessibility permissions are required.

https://www.alansiu.net/2020/04/08/using-applescript-to-install-macos-software-updates-via-system-preferences/

https://stackoverflow.com/questions/42231133/use-applescript-to-list-the-names-of-all-ui-elements-in-a-window-gui-scripting?ref=sudoade

Having said that, I have had reasonable success sharing this annotated screenshot with our end-users via email or using swiftDialog and embedding the image inside an "Install updates now" prompt:

https://snelson.us/2023/03/display-message-0-0-7-via-swiftdialog/

You could also use tools such as Nudge or SUPER to achieve something similar.

Hope this helps!

 


Hi @jtrant thank you for your reply, I am looking for an easier way :-) It looks like that there is no way to open that "sub window". I havent tried SUPER yet, will check if it works for me.


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