Skip to content

Instantly share code, notes, and snippets.

@zackn9ne
Last active January 31, 2019 15:56
Show Gist options
  • Save zackn9ne/3265d279fef49069a97f7d1bcd14432b to your computer and use it in GitHub Desktop.
Save zackn9ne/3265d279fef49069a97f7d1bcd14432b to your computer and use it in GitHub Desktop.
setup osxdock
#!/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