Script to fetch a list of apps installed from the App Store on Mac
Generating a list of installed applications helps administrators identify if the user lacks any essential apps or keep track of the apps the user is probably accessing on the device. This bash script will fetch a list of all the apps downloaded from the App Store on the Mac. With Hexnode UEM, you can remotely deploy custom scripts to your enrolled macOS devices using the Execute Custom Script action.
Scripting Language – Bash
File extension – .sh
List App Store apps on Mac
find /Applications -path '*Contents/_MASReceipt/receipt' -maxdepth 4 -print |\sed 's#.app/Contents/_MASReceipt/receipt#.app#g; s#/Applications/##'