Insert a Script

You can control scripts using the Script application type. System administrators can apply Application Rules on scripts to allow installation and management of development tools; for example, Homebrew.

Supported script types include:

  • bash (.sh)
  • ruby (.rb)
  • python (.py - xattr)

To use Homebrew effectively, you must download the Homebrew script and remove the following lines, also shown highlighted in the image:

elsif !`dsmemberutil checkmembership -U "#{ENV["USER"]}" -G admin`.include?("user is a member")
 abort "This script requires the user #{ENV[USER]} to be an Administrator."

Download the Homebrew script and remove certain lines.

Matching criteria is case sensitive.

  1. Select the Application Group you want to add the script control to.
  2. Right-click and select Insert Application > Script.
  3. Enter a File or Folder Name.
  4. Enter a description or accept the default and click Next. You can leave the Description blank to match on all scripts.
  5. You must configure the matching criteria for the binary. You can configure:
    • File or Folder Name Matches
    • File Hash (SHA-1 Fingerprint)
    • Command Line Arguments
    • Parent Process Matches
  6. Click Finish. The script is added to the Application Group.