swiftDialog 2.5 Beta 1
Pre-releaseNew
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](https://private-user-images.githubusercontent.com/3598965/325229163-a89c3a75-deac-49d8-aff5-7773f6aaaf42.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyNzAzOTEsIm5iZiI6MTcyNTI3MDA5MSwicGF0aCI6Ii8zNTk4OTY1LzMyNTIyOTE2My1hODljM2E3NS1kZWFjLTQ5ZDgtYWZmNS03NzczZjZhYWFmNDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDJUMDk0MTMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDI5YTYxNjZmODUxZTVhNGNjMzNjZDNkYWYzZmZlYjdiMzI3ZTJmMzI4OGJmYzczODNkYzliNDU5ZTE5ODU2ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.nI6pJAcS55tuUds31IoS3M_1Dfj4sluRd53gOczf5NU)
![image](https://private-user-images.githubusercontent.com/3598965/325225103-dd855011-a403-4002-ace6-9e419d36d954.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyNzAzOTEsIm5iZiI6MTcyNTI3MDA5MSwicGF0aCI6Ii8zNTk4OTY1LzMyNTIyNTEwMy1kZDg1NTAxMS1hNDAzLTQwMDItYWNlNi05ZTQxOWQzNmQ5NTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDJUMDk0MTMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGI2ZmUxNzEzOTEwNzJkNzM5ZWI1Njc1ZDU4NGU2YWM2ZTY2OWFiODZmNjhhMGViYWM5ZDlhZWU3ZTU4ZDUxZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.9N4BjyGAV3GsvsNKYocjNOYGGVYkreSUDUx-gqYQ9FE)
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](https://private-user-images.githubusercontent.com/3598965/325233097-f6003ee0-a2ac-4305-8073-c8b1504ed295.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyNzAzOTEsIm5iZiI6MTcyNTI3MDA5MSwicGF0aCI6Ii8zNTk4OTY1LzMyNTIzMzA5Ny1mNjAwM2VlMC1hMmFjLTQzMDUtODA3My1jOGIxNTA0ZWQyOTUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDJUMDk0MTMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjFjMzQ2ZjljZWU2NTcyOTRmZDIzMTZhZWU2MjVhZTJlZjUwNGZkYzAyNTkzMTY3OWUzM2ViODMyNzk3YzBlMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.BnhDc7eGZLE3Ow7AvGyL11s85KKTPPlQEcA27TASvQI)
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.