Tag: arrays

  • Putting Dockutil add/removes in arrays in Bash

    Most of the time when you see scripts using Dockutil to add and/or remove items from the Dock in Mac OS X, they look like this: /usr/local/bin/dockutil –add ‘/Applications/NAMEOFAPP1.app’ –no-restart /usr/local/bin/dockutil –add ‘/Applications/NAMEOFAPP2.app’ –no-restart /usr/local/bin/dockutil –add ‘/Applications/NAMEOFAPP3.app’ –no-restart /usr/local/bin/dockutil –add ‘/Applications/NAMEOFAPP4.app’ –no-restart /usr/local/bin/dockutil –add ‘/Applications/NAMEOFAPP5.app’ –no-restart /usr/local/bin/dockutil –add ‘/Applications/NAMEOFAPP6.app’ –no-restart /usr/local/bin/dockutil –add ‘/Applications/NAMEOFAPP7.app’ –no-restart That’s…