alfred-countdown-timer icon indicating copy to clipboard operation
alfred-countdown-timer copied to clipboard

Nothing happens :-/

Open trymbill opened this issue 12 years ago • 8 comments

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

trymbill avatar Feb 21 '13 08:02 trymbill

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?

dbader avatar Feb 21 '13 13:02 dbader

Sorry for the late reply.

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

trymbill avatar Feb 27 '13 11:02 trymbill

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?

dbader avatar Feb 28 '13 14:02 dbader

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 avatar Mar 19 '13 00:03 M165437

@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 avatar Mar 26 '13 21:03 dbader

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

dbader avatar May 22 '13 13:05 dbader

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.

charle5 avatar Apr 28 '14 03:04 charle5

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

Dast1Woop avatar Jul 17 '21 03:07 Dast1Woop