Results 1 to 2 of 2
  1. #1

    Member Since
    Mar 15, 2012
    Question Shutdown/Logout script
    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,

  2. #2

    Mark FX's Avatar
    Member Since
    Aug 13, 2011
    West Sussex, UK
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. OSX Lion Problem - Can't sleep/restart/shutdown/logout
    By FlamingCh1cken in forum macOS - Operating System
    Replies: 2
    Last Post: 06-20-2013, 12:47 PM
  2. How do i make a script that runs on shutdown/when finderquits
    By zentdayn in forum macOS - Operating System
    Replies: 0
    Last Post: 02-17-2010, 12:51 PM
  3. Replies: 0
    Last Post: 10-21-2009, 11:44 PM
  4. Run script at startup/shutdown
    By Cheetah05 in forum macOS - Operating System
    Replies: 0
    Last Post: 08-25-2009, 05:12 AM
  5. Application Shutdown Script with message notification
    By lirrincity in forum macOS - Apps and Games
    Replies: 0
    Last Post: 10-19-2007, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts