Skip to content

Instantly share code, notes, and snippets.

@smashism
Created February 20, 2026 23:02
Show Gist options
  • Select an option

  • Save smashism/0321760a6950758dcdce96d44239b07a to your computer and use it in GitHub Desktop.

Select an option

Save smashism/0321760a6950758dcdce96d44239b07a to your computer and use it in GitHub Desktop.
basic custom actions for the self service+ menubar utility (née jamf connect)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Actions</key>
<array>
<dict>
<key>Name</key>
<string>Hostname</string>
<key>ToolTip</key>
<string>Hostname</string>
<key>Title</key>
<dict>
<key>Command</key>
<string>path</string>
<key>CommandOptions</key>
<string>/bin/hostname</string>
</dict>
</dict>
<dict>
<key>Name</key>
<string>Hostname</string>
<key>ToolTip</key>
<string>Chip</string>
<key>Title</key>
<dict>
<key>Command</key>
<string>path</string>
<key>CommandOptions</key>
<string>system_profiler SPHardwareDataType | grep "Chip" | awk -F': ' '{print $2}'</string>
</dict>
</dict>
<dict>
<key>Name</key>
<string>Operating System Version</string>
<key>ToolTip</key>
<string>macOS version</string>
<key>Title</key>
<dict>
<key>Command</key>
<string>path</string>
<key>CommandOptions</key>
<string>system_profiler SPSoftwareDataType | grep "System Version" | awk -F': ' '{print $2}'</string>
</dict>
</dict>
<dict>
<key>Name</key>
<string>en0</string>
<key>ToolTip</key>
<string>Primary IP Address</string>
<key>Title</key>
<dict>
<key>Command</key>
<string>path</string>
<key>CommandOptions</key>
<string>/usr/sbin/ipconfig getifaddr en0</string>
</dict>
</dict>
</array>
</dict>
</plist>
@smashism
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment