From f856dfd2db371c072330f974a9adc5b60ba23d23 Mon Sep 17 00:00:00 2001 From: rougegoat Date: Mon, 11 Sep 2023 15:29:51 -0500 Subject: [PATCH] Add Window Position to Jamf Policy Variables Adds windowPosition as a Parameter 7 for Jamf policies. If not set, it defaults to Center. --- .../swiftDialog-Inventory-Update-Progress.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Inventory Update Progress/swiftDialog-Inventory-Update-Progress.bash b/Inventory Update Progress/swiftDialog-Inventory-Update-Progress.bash index 5c4b8c5..da2722c 100644 --- a/Inventory Update Progress/swiftDialog-Inventory-Update-Progress.bash +++ b/Inventory Update Progress/swiftDialog-Inventory-Update-Progress.bash @@ -51,6 +51,7 @@ inventoryLog=$( mktemp /var/tmp/inventoryLog.XXX ) scriptLog="${4:-"/var/tmp/org.churchofjesuschrist.log"}" estimatedTotalSeconds="${5:-"298"}" debugMode="${6:-"false"}" +windowPosition="${7:-"center"}" @@ -73,6 +74,7 @@ dialogInventoryUpdate="$dialogApp \ --title \"$title\" \ --message \"$message\" \ --icon \"$icon\" \ +--position \"$windowPosition\" \ --mini \ --moveable \ --progress \ @@ -337,4 +339,4 @@ sleep 3 # Exit # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -quitScript \ No newline at end of file +quitScript