-
Notifications
You must be signed in to change notification settings - Fork 1
Mac App Store Functions
Marco Valtas edited this page May 15, 2019
·
1 revision
The mas is a set of shortcuts for interacting with mas (Mac App Store Command-line)
These functions requires mas to be installed. If not found it will warn and ignore calls from definitions. To ensure mas is available you can add to your definition, before calling appstore, this:
use 'brew'
brew_pkg 'mas'
At your definition file start by requiring mas like so:
use "mas"Installs APPNAME if not found using mas install APPID. APPNAME needs to be available in your Purchases of App Store, otherwise mas will fail. This means that you need at least once have bought the application from the App Store. APPID can be obtained using mas search APPNAME. Example of a definition using mas:
use 'mas'
appstore Caffeine 411246225Will install Caffeine application if not already installed on the machine.