mac-dock
v2019.5.10
Published
macOS Dock scripts
Downloads
5
Readme
macOS Dock scripts
Installation
$ [sudo] npm i -g mac-dock
Scripts usage
command|usage
-|-
dock
|usage: dock command [args]
dock-add-app
|usage: dock-add-app app ...
dock-add-folder
|usage: dock-add-folder [--arrangement=X][--displayas=Y][--showas=Z] path
dock-apps
|usage: dock-apps
dock-folders
|usage: dock-folders
dock-rm
|usage: dock-rm item ...
Examples
$ dock add-app /Applications/iTunes.app; killall Dock
# arrangement: 1 - name (default), 2 - added, 3 - modification, 4 - creation, 5 - kind
# displayas: 1 - folder, 2 - stack (default)
# showas: 1 - beep, 2 - grid, 3 - list, 4 - auto (default)
$ dock add-folder --arrangement=2 --displayas=1 --showas=1 ~/Downloads; killall Dock
$ dock apps
/Users/username/Applications/Google Chrome.app
/Users/username/Applications/Sublime Text.app
/Applications/Utilities/Terminal.app
/Applications/iTunes.app
$ dock folders
/Users/username/Downloads
$ dock rm /Applications/iTunes.app ~/Downloads; killall Dock