Shutdown/Logout script

jgr


Joined
Mar 15, 2012
Messages
1
Reaction score
0
Points
1
Hi all!

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.

Best regards,
Jorge
 
Joined
Aug 13, 2011
Messages
200
Reaction score
7
Points
18
Location
West Sussex
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.

Regards Mark
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top