Added variables to support SwiftDialog (path, command file)
Added an array to contain all customizable SwiftDialog options. Should make it easy for admins to slot in their own messaging/icons/etc.
Added new flags --swiftdialog or -d (I didn't use -s because thats typically used for silent/quiet mode)
Added new functions:
checkSwiftDialog: If --swiftdialog is used, but SwiftDialog is not yet installed, patchomator will use Installomator to install SwiftDialog prior to running other labels
swiftDialogCommand: Allows us to send updates to the running dialog window
swiftDialogWindow: Builds an array containing the "display name" of each label we're going to process
CompleteSwiftDialog: Deletes the tmp command file, and enables the "OK" button so that the dialog can be dismissed.
KNOWN ISSUES:
Installomator/SwiftDialog integration is not yet perfected, and sometimes the green checkmark won't properly appear in the dialog list. I opted to stick with the built in integration of those two tools, because if it improves in the future then no changes to Patchomator will be needed.
Patchomator appears to be installing labels listed in "IgnoredLabels". Because those entries in the plist don't have a file path associated with them, it was messing with my changes. I added logic so that any item that doesn't have a file path, also doesn't get listed in the Dialog window. This allowed me to complete the SwiftDialog integration, but it means that Patchomator is installing things that aren't being listed in the Dialog window.
--swiftdialog
or-d
(I didn't use -s because thats typically used for silent/quiet mode)--swiftdialog
is used, but SwiftDialog is not yet installed, patchomator will use Installomator to install SwiftDialog prior to running other labelsKNOWN ISSUES: