Changeset 343 for trunk/RetroStatus
- Timestamp:
- 10/28/07 21:43:59 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/RetroStatus/RetroStatus.py
r209 r343 1 1 #!/usr/bin/pythonw 2 2 3 from appscript import app, k 3 from appscript import app, k, CommandError 4 4 from aemreceive.sfba import * 5 5 from Foundation import NSLog, NSUserDefaults, NSDate … … 57 57 if DEBUG: 58 58 NSLog('%s: %s' % (title, description)) 59 growl.notify(**params) 59 try: 60 growl.notify(**params) 61 except CommandError: 62 pass 60 63 61 64 def addEvent(title, description, preformatted=False): … … 68 71 events.addItem({(RSS.ns.dc, 'date'): datetime.today().isoformat(), 69 72 (RSS.ns.rss10, 'title'): title, 70 73 # (RSS.ns.rss10, 'link'): datetime.today().isoformat(), 71 74 (RSS.ns.rss10, 'description'): description}) 72 75 events.truncateToLength(EVENTS_MAX)
Note:
See TracChangeset
for help on using the changeset viewer.