Posted on 08-01-2024 03:52 AM
Hi,
I've installed the Ripple Tool extension on several devices, but I'm having trouble getting it to turn on automatically. Whenever a user logs in and opens Safari, they get a pop-up asking if they want to enable the "Ripple Tool" extension.
I’ve tried using a script to automate this, but it keeps failing because it can’t find the com.apple.Safari.Extensions.plist file in preferences. The Ripple Tool was downloaded and installed from the Apple Store.
I also tried using a configuration profile to enable the extension, but that approach didn’t work either.
#!/bin/bash
# Define the extension's bundle ID
EXTENSION_BUNDLE_ID="com.ripple.tool"
# Safari’s extension preferences file
PREFERENCES_FILE="/Users/$USER/Library/Preferences/com.apple.Safari.extensions.plist"
# Check if the plist file exists
if [ -f "$PREFERENCES_FILE" ]; then
# Add the extension to the plist (this approach might vary depending on Safari version)
/usr/bin/defaults write "$PREFERENCES_FILE" "ExtensionsInstalled" -array-add "$EXTENSION_BUNDLE_ID"
/usr/bin/defaults write "$PREFERENCES_FILE" "ExtensionsEnabled" -array-add "$EXTENSION_BUNDLE_ID"
echo "Ripple Tool extension enabled."
else
echo "Preferences file not found. Ensure Safari is installed and the extension is available."
fi
Posted on 08-01-2024 05:34 AM
You can't. A few years ago (with Catalin I think) apple changed how Safari Extension work. There is no way to programmatically enable or to prevent a user from disabling a Safari Extension. It goes as far with macOS 14 that a user can say what sites an Extension can be enabled for.
Posted on 08-01-2024 12:42 PM
I was happy to learn that Apple's WWDC 2024 included an announcement that MDM management for Safari extensions is coming in macOS 15 Sequoia. See the 11-minute mark at https://developer.apple.com/videos/play/wwdc2024/10143/
Posted on 10-17-2024 05:41 AM
Apple have now released the DDM configuration for managing Safari Extensions in macOS 15.1 onwards, but as of Jamf Pro 11.10 there still no GUI avalible for it
https://github.com/apple/device-management/blob/seed_iOS-18-1_macOS-15-1/declarative/declarations/co...
Posted on 11-13-2024 07:27 AM