Skip to content

Instantly share code, notes, and snippets.

View evandroflores's full-sized avatar
☁️
Building the Cloud

Evandro Flores evandroflores

☁️
Building the Cloud
  • Dublin, Ireland
  • 11:51 (UTC)
View GitHub Profile
@evandroflores
evandroflores / notify.py
Created March 20, 2018 00:56 — forked from lukaszb/notify.py
Simple Python script to send notification to the OSX Notifications Center (requires OS X 10.8+). Tested with pyobjc 2.5.1
#!/usr/bin/env python
from Foundation import NSUserNotification
from Foundation import NSUserNotificationCenter
from Foundation import NSUserNotificationDefaultSoundName
from optparse import OptionParser
def main():
parser = OptionParser(usage='%prog -t TITLE -m MESSAGE')