dbader / alfred-countdown-timer

A countdown timer extension for Alfred.app
http://dbader.org/blog/alfred-timer-extension
MIT License
250 stars 31 forks source link

Nothing happens :-/ #2

Open trymbill opened 11 years ago

trymbill commented 11 years ago

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 :)

dbader commented 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?

trymbill commented 11 years ago

Sorry for the late reply.

Yes, there is a timer.py in that folder.

dbader commented 11 years ago

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?

M165437 commented 11 years ago

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".

dbader commented 11 years ago

@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 :-).

dbader commented 11 years ago

@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? ;-)

charle5 commented 10 years ago

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.

Dast1Woop commented 3 years ago

1.search noti in alfred 2.open notification switch 3.try again, and it works

截屏2021-07-17 上午11 53 04 截屏2021-07-17 上午11 52 58