Skip to content

Latest commit

 

History

History
62 lines (35 loc) · 2.08 KB

File metadata and controls

62 lines (35 loc) · 2.08 KB

swiftDialog Commander

Interactive control of swiftDialog v1.11.0.2758 (or later) via the macOS Terminal


Background

One of my favorite features of swiftDialog is updating a running dialog with new content.

To better wrap my head around how this works, I wrote swiftDialog Commander both as an exercise to test various commands and to help make sure I understood what was happening in scripts written by other Mac Admins.


Screencast

swiftDialog Commander


Features

  • Interactive control of a running dialog via the macOS Terminal

Usage

  1. Install the latest version of switftDialog on a local test Mac
  2. Save swiftDialogCommander.sh to your Downloads folder:
curl -o ~/Downloads/swiftDialogCommander.sh https://raw.githubusercontent.com/dan-snelson/dialog-scripts/main/swiftDialog%20Commander/swiftDialogCommander.sh
  1. Review the built-in help via: bash ~/Downloads/swiftDialogCommander.sh --help
  2. Execute various commands via: bash ~/Downloads/swiftDialogCommander.sh

title: My First Test of swiftDialog

icon: /System/Library/CoreServices/Finder.app

icon: SF=person.3.sequence.fill,palette=red,green,blue

message: swiftDialog is pretty sweet

overlayicon: /Library/Application Support/Dialog/Dialog.app

list: Item 1, Item 2, Item 3

listitem: title: Item 1, status: success

progresstext: Item 1 installed.

progress: 33

listitem: title: Item 2, status: wait, statustext: Pending

progress: 66

listitem: title: Item 3, status: wait, statustext: Pending

listitem: title: Item 2, status: fail, statustext: Failed

progresstext: Item 2 failed.