Hi all! I have this app that logs time connected to the internet every session and it quits once I disconnect from the top-right menu (if you have it, if not, it’s in System Preferences – > Network → Show: Internal Modem (or whatever you have) → Modem). The app is stay open and an idle handler keeps updating the seconds connected. Then when I disconnect it saves some data and quits. So far all that works ok, but I would like to add one more feature: when “idle”, is there a way I could click on the icon in the dock and that the app will show me a dialog or do something?
Something like “on click” → action
So far that’s it. If anyone’s interested I’ll post the code, it’s large, and in spanish (variable names and comments of course) but it’s working pretty nice, I’m very proud. you’d have to change the function that calculates the money spent on the call (which is actually not applyable to the US since those are local calls, hence free as far as I know, but for us the third-worlders hehe it might be useful, it helps controling oneself). And I have an iTunes timer that’s pretty cool too. It plays for a while (you set xx songs chosen from a certain playlist) and then shuts down or sleeps. It’s nice, but off topic!! Oks, I thank anyone who helps!