Mac App Store Functions - mvaltas/grind GitHub Wiki
The mas
is a set of shortcuts for interacting with mas
(Mac App Store Command-line)
Requirements
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'
Usage
At your definition file start by requiring mas
like so:
use "mas"
Functions
appstore APPNAME APPID
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 411246225
Will install Caffeine application if not already installed on the machine.