Wednesday
Is there a way to automatically have Safari 18.1.1 install on all end user MacBooks? I 'thought' if we pushed 14.7.1, Safari 18.1.1 would be included/installed at the same time. That does not seem to be the case as users still have to manually go into Settings -> software updates -> updates safari there.
Wednesday
#!/bin/bash
# written by theadamcraig
# https://github.com/theadamcraig/jamf-scripts/blob/master/update_safari_if_closed
appName="Safari Web Content"
function updateSafari () {
updateName=$(softwareupdate -l | grep "Safari" | grep "Label" | awk '{ print $3 }')
if [ -z "$updateName" ] ; then
echo "update not found."
echo "listing software updates to make sure there is not an error:"
echo $( softwareupdate -l )
exit 1
fi
softwareUpdate -i "$updateName"
sleep 5
exit 0
}
appRunning=`ps aux | grep -i "$appName" | grep -v "grep"`
echo "Checking if $appName is running"
echo "$appRunning"
if [ -z "$appRunning" ] ; then
echo "update Safari"
updateSafari
else
echo "$appName is open. skipping Update"
fi
exit 0
Wednesday
i have used this script in the past, try this it might helpfull
Wednesday
Unfortunately, Apple only bundles Safari with the most current major macOS's delta. For MacOS N-1 and N-2 Safari is a separate package.
You can just deploy Safari as a Package to macOS 13 (N-2) and 14 (N-1) with a policy. However, do not deploy this package to macOS 15 (or current major macOS) or it will break safari with no easy path to fixing it without wiping the device (Don't ask how I learned this last year).
People will parodically link the Safari package from apples CND when it is updated.
https://community.jamf.com/t5/jamf-pro/safari-18-1-1-for-macos-14-sonoma/m-p/333677