Thread: Shutdown/Logout script
03-15-2012, 11:37 AM #1
- Member Since
- Mar 15, 2012
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.
03-16-2012, 05:13 PM #2
I don't believe that Applescript or Automator, has the ability to intercept the systems log out dialog
box, so you could be looking at creating a background demon or service with a Unix shell program,
or creating a background service with Objective-C and Xcode.
Sorry I could not be more help.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By FlamingCh1cken in forum OS X - Operating SystemReplies: 2Last Post: 06-20-2013, 12:47 PM
By zentdayn in forum OS X - Operating SystemReplies: 0Last Post: 02-17-2010, 12:51 PM
By bacchusf in forum OS X - Operating SystemReplies: 0Last Post: 10-21-2009, 11:44 PM
By Cheetah05 in forum OS X - Operating SystemReplies: 0Last Post: 08-25-2009, 05:12 AM
By lirrincity in forum OS X - Apps and GamesReplies: 0Last Post: 10-19-2007, 12:34 AM