Last active
January 31, 2019 15:56
-
-
Save zackn9ne/3265d279fef49069a97f7d1bcd14432b to your computer and use it in GitHub Desktop.
setup osxdock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#requires docklib.py | |
import os | |
from docklib import Dock | |
tech_dock = [ | |
'/Applications/Google Chrome.app', | |
'/Applications/Microsoft Excel.app', | |
'/Applications/Microsoft Word.app', | |
'/Applications/Microsoft PowerPoint.app', | |
'/Applications/Slack.app' | |
] | |
dock = Dock() | |
for item in tech_dock: | |
if os.path.exists(item): | |
item = dock.makeDockAppEntry(item) | |
dock.items['persistent-apps'].append(item) | |
dock.save() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment