github swiftDialog/swiftDialog v2.5.0b1
swiftDialog 2.5 Beta 1

latest release: v2.5.0b2
pre-release14 days ago

New

Presentation Mode

--presentation

Presentation mode is a display only mode that can be used as a richer display of content during background processes. The window is divided into roughly one third info area and two thirds content area with a progress bar underneath. Presentation mode is intended to be used in conjunction with a command file for receiving updates.

The info area can display one of:

  • An --infobox text view, coloured background and icon didplay.
  • One or more images that can be commanded to transition through available images using --autoplay
  • A web view

The content area can display either:

  • Any --message <text> in any of the supported forms.
  • One or more --listitem <item> in any of the supported forms.

The footer of the window is always visible and dedicated to a full width progress bar and buttons.

image image

Custom View Ordering #143

--vieworder <csv>

With the exception of Images and message content, window elements can be re-ordered.

The default order is textfile, webcontent, listitem, checkbox, textfield, radiobutton, dropdown. This can now be re-arranged to suit display needs, e.g. --vieworder "dropdown, textfield, checkbox"

"Stack" style for buttons - @jonesiscoding

--buttonstyle stack

Displays button 1 and button 2 in a full width stack.

image

Built in variables #362

swiftDialog now contains built in variables that will populate with host specific info. Include into your text strings as {variablename}

The included variables are:

{computername}  - hostname of the computer
{computermodel} - computer model, e.g. "Mac mini (2023)"
{serialnumber}  - serial number
{username}      - current username, e.g. `johndoe`
{userfullname}  - full name, e.g. `John Doe`
{osversion}     - macOS version, e.g. `14.4.1`
{osname}        - macOS name, e.g. `Sonoma`

Any environment variables are also accessable in this way

Set alternate name for user input fields

User input fields like textfield, checkbox and selectitem have an additional modifier name=<text>. This allows for expressive labels with easy to parse names in the output.

e.g.

--textfield "What is your favourite colour?",name=colour

will return the output

colour : <value>

Other fixes

  • The image carousel has been replaced with an updated image processing view. Images fade into view and the "time until next image" progress indicator has been removed.
  • Sending multiple notifications now causes notifications to stack in notification centre instead of only displaying the last notification #356
  • Added support for prompt= to secure fields
  • Window title value is now set. This wasnt used previously but if using --windowbuttons and the dialog window is minimised, the correct window title is displayed on hover in the Dock
  • Fixed an issue when using --timer and --button1text would not cause the button to be disabled for the first three seconds in contrast to the documented behaviour #363
  • Any data entered into user entry fields is output to stdout regardless what button is pressed, not jsut on a successful exit

Known Issues

  • Sending message or image updates to a dialog in presentation mode may have undesirable effects. This will be fixed in a future release.

Don't miss a new swiftDialog release

NewReleases is sending notifications on new releases.