tim.zimmermann Posted June 25, 2013 Posted June 25, 2013 Hey guys, I wrote a simple countdown program in Python and use it in Alfred with a script filter. It basically shows the remaining time to a date. Everythin works just fine, but the result is, of course, a fixed remaining time. I was wondering if there is a way to refresh the result (for example every second) to have a live countdown? I tried it with a loop/sleep in Python, but that doesn't work since the script doesn't end and Alfred seems to wait for that. Thanks in advance! Tim
vitor Posted June 25, 2013 Posted June 25, 2013 Possible? Definitely. Pretty? Not in the slightest. I’ve been running some tests, and this is what I ended up with. tim.zimmermann 1
tim.zimmermann Posted June 25, 2013 Author Posted June 25, 2013 (edited) Hey Vitor, thanks for your reply. Nice idea, it's sufficient for my use case, so thank you! However, a built-in function could suppress the complete reload of the Alfred window, of course. I totally agree with you, it's not a must-have-feature coming from Alfred, I was just wondering whether I just missed it. There might be some similar use cases to the ones mentioned in your post (top, wolfram; e.g. ping, download progress, ...), we'll see what the community will come up with. Best regards! Edited June 25, 2013 by tim.zimmermann
vitor Posted June 25, 2013 Posted June 25, 2013 There’s actually a more visually elegant way of doing it, not needing to reload Alfred’s window over and over, but it has one huge drawback — it can’t be canceled before it finishes without some consequences. I’ve posted an explanation on the other thread.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now