Lutin
08-16-2007, 04:39 PM
Hi,
I'm looking for a way to execute a script when (and only when) login and waking up. My ultimate goal is to be able to run an applescript at login or when waking up that, if you have items in your ~/Public/Drop Box folder, displays a growl-message.
I looked into launchd, login hook (http://docs.info.apple.com/article.html?artnum=301446) and monitoring files such as /var/log/secure.log or /var/log/secure.log
None of those solutions worked for, eg, detecting a waking up from sleep, without a password being asked.
What would you suggest? Yes *you*, don't wait for the next one to reply!
I'm looking for a way to execute a script when (and only when) login and waking up. My ultimate goal is to be able to run an applescript at login or when waking up that, if you have items in your ~/Public/Drop Box folder, displays a growl-message.
I looked into launchd, login hook (http://docs.info.apple.com/article.html?artnum=301446) and monitoring files such as /var/log/secure.log or /var/log/secure.log
None of those solutions worked for, eg, detecting a waking up from sleep, without a password being asked.
What would you suggest? Yes *you*, don't wait for the next one to reply!