This commit is contained in:
2025-07-02 01:05:17 +02:00
parent bb9aa33132
commit 4031657854
2 changed files with 0 additions and 0 deletions

27
scripts/plist/backup.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# Create secrets directory if it doesn't exist
mkdir -p secrets/plist
# Array of app IDs to export
APP_IDS=(
"com.lwouis.alt-tab-macos"
"com.jordanbaird.Ice"
"com.apphousekitchen.aldente-pro.plist"
"com.lihaoyun6.QuickRecorder.plist"
)
# Export each plist
for APP_ID in "${APP_IDS[@]}"; do
echo "Exporting $APP_ID..."
defaults export "$APP_ID" - >"secrets/plist/$APP_ID.plist"
# Check if export was successful
if [ $? -eq 0 ]; then
echo "Successfully exported $APP_ID to secrets/$APP_ID.plist"
else
echo "Failed to export $APP_ID"
fi
done
echo "All exports completed!"