• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crontab message to user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crontab message to user


  • Subject: Re: Crontab message to user
  • From: Donald Hall <email@hidden>
  • Date: Fri, 23 May 2003 22:43:28 -0600

Dan,

Take a look at my shareware application "Script Timer" at the web site in my sig. It's a scheduling program for AppleScripts and applications. A lot more user friendly than cron, with a drag and drop interface. It comes with a little script called "Reminder" that will pop up a dialog on the screen with whatever message you want at the time you want. You could probably easily modify this script to avert the shutdown. For example, you could schedule Reminder for 10:55 to pop up a warning message, and then schedule the modified script to run at 11:00. It would put up a dialog that would give the user an opportunity to cancel the shutdown, with the default being to shut down. You could use "giving up after" to have the dialog automatically go away and the shut down proceed if nobody is around. You could incorporated /sbin/shutdown into a 'do shell script' command if you didn't want to use the AppleScript shutdown command.

Don

At 8:01 AM -0700 2003/05/23, email@hidden wrote:
Subject: Crontab message to user
From: Dan Ball <email@hidden>
To: <email@hidden>

Hi Everyone!

I was wondering if this is possible??

We have our machines shutdown every night at 11:00pm, we are currently using
OS 9 which is easy to do.

We want to do this with OS X when we move to it. I have a Crontab to
/sbin/shutdown -h now at 11:00 everyday.

How could I get a GUI message to pop up saying at like 10:55pm to warn a
logged in user that the system is going to shutdown at 11:00pm, please save
all your work before that time.

Probably would be nice to let the user cancel it also!

Thanks,

Dan Ball

--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: understanding dictionaries
  • Next by Date: Re: understanding dictionaries
  • Previous by thread: Crontab message to user
  • Next by thread: Re: Crontab message to user
  • Index(es):
    • Date
    • Thread