Open trymbill opened 11 years ago
First of all, my apologies for the spoiled tea ;-)
I just checked to make sure that the .alfredextension package from the repo actually contains timer.py
– and it does.
Is there a timer.py
in ~/Library/Application Support/Alfred/extensions/scripts/Timer
on your system?
Sorry for the late reply.
Yes, there is a timer.py in that folder.
Maybe the current directory isn't set correctly when Alfred invokes the Python interpreter. I'm kinda clueless on how to debug this right now, though. Are you using the extension with Alfred v2?
I use OS X 10.7 and get an "objc.nosuchclass_error: NSUserNotification" when running the script in the terminal directly. That's why there is no output. Unfortunately Growl isn't supported contrary to the label "Uses Growl". :-)
Turning silent mode off won't work as Alfred just opens a terminal and runs the extension command in the default working directory, therefor "No such file".
@M165437: NSUserNotification
is only available on OS X >= Mountain Lion (10.8). I've written the script specifically to work on Mountain Lion. But supporting Growl would certainly be desirable :-).
@trymbill The extension now uses /usr/bin/python
instead of simply calling python
(see #1). Maybe this also fixes your problem. Would you mind trying with a new cup of tea? ;-)
At first I was also unable to display notifications in Mavericks, but now it's fixed.
Initially I thought it might be a python issue [1] so I installed homebrew python and changed the script to use python
instead of /usr/bin/python
. This alone didn't solve the problem.
Then I realized the Notification Center
menu icon was mysteriously missing from my toolbar (and thus wasn't even running). I manually launched the Notification Center.app
from /System/Library/CoreServices/Notification Center.app
, and now notifications work. :)
[1] From this comment in Issue #1.
1.search noti in alfred 2.open notification switch 3.try again, and it works
I just tried your extension for Alfred, hoping to be able to remember that my tea was done, but it didn't work, and my tea is ruined! Ruined I tell you, ruined!!
Well not really, but still, I can't get the extension to work. I type "timer 5:30" into alfred, it recognizes the alias but when I hit ENTER nothing happens. I tried making it non-silent and the terminal showed
python: can't open file 'timer.py': [Errno 2] No such file or directory
Please let me know if I can help figuring this issue out :)