New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Shutdown/Logout script


Post Reply New Thread Subscribe

 
Thread Tools
jgr

 
Member Since: Mar 15, 2012
Posts: 1
jgr is on a distinguished road

jgr is offline
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
QUOTE Thanks
Mark FX

 
Mark FX's Avatar
 
Member Since: Aug 13, 2011
Location: West Sussex, UK
Posts: 167
Mark FX has a spectacular aura about

Mark FX is offline
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
QUOTE Thanks

Post Reply New Thread Subscribe


« Applescript help please - Mpeg Streamclip (GUI) | Mac Dev. and Mountain Lion »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Script for Zoom in MS Office Word 2008 or 2011 Lbatson21 OS X - Apps and Games 1 10-31-2011 10:39 PM
Script to duplicate Apple Lossless iTunes library as MP3 files nick_harambee OS X - Operating System 10 10-02-2010 08:53 AM
need help to amend a script so that it only runs if iTunes is running nick_harambee OS X - Operating System 1 07-20-2009 11:15 AM
Script for adding users i_eat_short_ppl OS X - Operating System 0 06-04-2009 06:01 PM
apple script to greet me off stand by jakeroberts OS X - Development and Darwin 0 04-29-2007 12:34 PM

All times are GMT -4. The time now is 01:21 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?