03-15-2012, 12:37 PM
I've been asked to develop a script that is suppose to run when a user logs out or shuts down the computer.
The script is a reminder to update the daily hours spent on each project, so the behavior would be the following:
1 - User orders the computer to log out or shut down
2 - A dialog box appears asking if the user has already inserted his hours on the enterprise system.
3 - If clicked "Yes", proceeds to shutdown/logout
If clicked "No", interrupts the shutdown/logout proceadure and opens the enterprise tracking system url so that the user can update the tasks spent time.
What's the best way to do this?
I'm an absolute newbie on Macs, never did any development on Mac.
Thank you for your time.