From b0c3e9e512d28f9a61e39a5d3abf03faca5cb1b2 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Mon, 10 Mar 2025 22:34:28 +0100 Subject: [PATCH] export plist --- scripts/plist/export.sh | 24 ++++++++++++++++++ ...b.plist => com.lwouis.alt-tab-macos.plist} | Bin 2 files changed, 24 insertions(+) create mode 100755 scripts/plist/export.sh rename secrets/plist/{altTab.plist => com.lwouis.alt-tab-macos.plist} (100%) diff --git a/scripts/plist/export.sh b/scripts/plist/export.sh new file mode 100755 index 0000000..cfeb6f5 --- /dev/null +++ b/scripts/plist/export.sh @@ -0,0 +1,24 @@ +#!/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" +) + +# 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!" diff --git a/secrets/plist/altTab.plist b/secrets/plist/com.lwouis.alt-tab-macos.plist similarity index 100% rename from secrets/plist/altTab.plist rename to secrets/plist/com.lwouis.alt-tab-macos.plist