#!/usr/bin/env zsh # vi: set ft=zsh tw=80 ts=2 function _installMASApp() { mas install ${id} &> /dev/null } function installMASApp() { local appName="$1" local id="$2" indicateActivity -- "Install ${appName} app" _installMASApp } function main() { lop -y h1 -- -i 'Install Mac AppStore Apps' installMASApp Keka 470158793 installMASApp Pages 409201541 installMASApp Numbers 409203825 installMASApp Outbank 1094255754 installMASApp 'Final Cut Pro' 424389933 installMASApp GarageBand 682658836 installMASApp Motion 434290957 installMASApp Compressor 424390742 installMASApp 'Logic Pro' 634148309 } if [[ "${ZSH_EVAL_CONTEXT}" == toplevel ]]; then source autoload-zshlib main "$@" fi