Last active
February 11, 2019 21:05
-
-
Save zackn9ne/dd532410bf2ab8027d2c9453986a0a73 to your computer and use it in GitHub Desktop.
make tech_dock
This file contains 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 | |
from docklib import Dock | |
from system import os | |
def makeDock(): | |
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() | |
makeDock() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment