Skip to main content

Display a Message to a macOS User with a Fileset

Description

This Fileset recipe displays an AppleScript dialog to the user currently signed in to a Mac. By default, the FileWave Client waits for the user to select OK before it continues processing later Filesets.

Pilot first: The downloadable Fileset is an older script example. Test the message, logged-in-user behavior, and activation sequence on a pilot Mac running the macOS versions you manage before broad deployment. For ongoing Fileset-status notifications instead of one blocking message, see Notify Users with a dialog (macOS).

Ingredients

Choose whether the dialog blocks later Filesets

The imported Fileset waits for its executable script to finish, so the dialog pauses later Fileset activation until the user acknowledges it. If the message should be informational only, clear Wait for executable to finish as described in step 6.

Directions

  1. Download and extract display-applescript-dialog.fileset.zip. In FileWave Central, drag the extracted Fileset into Filesets, or use New Desktop Fileset > Import.
  2. Open the Fileset and browse to /usr/local/scripts.
  3. Select message.txt, choose Edit Text, replace the example message, and select OK.
  4. Create a Deployment to a pilot Mac where a user is signed in, then run Model Update.
  5. Confirm that the dialog appears, the user can acknowledge it, and Fileset processing continues afterward.
  6. To let later Filesets continue while the dialog is open, open the Fileset, browse to /usr/local/scripts, select display-alert-on-current-users-desktop.sh, and choose Get Info. On the Executable tab, clear Wait for executable to finish, confirm the change, run Model Update, and retest the pilot Deployment.

If no user is signed in at the macOS console when the script runs, the bundled script exits without showing a dialog.

Related Content