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