The conversation on this page has been archived and is no longer active.

Any way to "log out" on a schedule?

Message #1 - Posted 2005/11/02 - Mark Conrad

The Energy Saver preferences allow one to put a powerbook to sleep via a schedule.

It is not clear to me what happens when an application is "open", but not being used, an app' such as Safari, for example.

Is the Mac smart enogh to close all open app's before attempting sleep?

I can understand why sleep would not work if a file was actively being downloaded.

Perhaps there is a 3rd party util' that will interrupt all active app's, then shut them off, so that sleep will always work?

Mark-

Message #2 - Posted 2005/11/02 - Tom Stiller

Previously, Mark Conrad wrote:

The Energy Saver preferences allow one to put a powerbook to sleep via a schedule.

It is not clear to me what happens when an application is "open", but not being used, an app' such as Safari, for example.

Is the Mac smart enogh to close all open app's before attempting sleep?

It's not clear to me that it's "smart" or not, but in any event, the OS does not close open applications before sleeping. Try it for yourself; Open the Script Editor ant run the one-liner:
tell application "Finder" to sleep.
and see what happens

I can understand why sleep would not work if a file was actively being downloaded.

Oh, it works, but the machine probably won't wake up.

Perhaps there is a 3rd party util' that will interrupt all active app's, then shut them off, so that sleep will always work?

Sleep will always work; waking may be problematic if data transfer is taking place at the time of forced sleep.

Tom Stiller

PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3
7BDA 71ED 6496 99C0 C7CF

Message #3 - Posted 2005/11/03 - Graham Miln

Previously, Mark Conrad wrote:

Perhaps there is a 3rd party util' that will interrupt all active app's, then shut them off, so that sleep will always work?

Mark-

Hi Mark,

We developed Power Manager for exactly this kind of task. :-)

http://www.dssw.co.uk/powermanager/

Kind regards,

Graham

mailto:support@dssw.co.uk
http://www.dssw.co.uk/ Mac energy saving and power management software

Message #4 - Posted 2005/11/03 - Mark Conrad

Previously, Tom Stiller wrote:

Is the Mac smart enogh to close all open app's before attempting sleep?

It's not clear to me that it's "smart" or not, but in any event, the OS does not close open applications before sleeping. Try it for yourself; Open the Script Editor ant run the one-liner:
tell application "Finder" to sleep.
and see what happens

Darn, my senility is showing again :-\

I knew that app's would stay open during sleep, don't know why I posted that.

Mainly, what I was thinking of were app's that _appeared_ to be in a non-working state, but in reality were actually working away in the background.

Like Timbuktu, for example, just sitting there connected to another computer, apparently doing nothing - - - but in reality furiously sending packets back and forth.

I should have worded my post to read that I wanted to completly quit all open applications, _before_ sleep was due to kick in via its schedule.

Namely, have a _scheduled_ "stop all open applications, then quit all open applications, just prior to putting computer to sleep".

Sorry about not making that clear in the first place.

Perhaps OSX's built in "Automator" can be _scheduled_ to do something like all that.

Don't know, as I have never used Automator yet.

Next best would be for me to bite the bullet and learn how to create a script to do everything described above - - - then get the script to kick in at a scheduled time.

Mark-

To Graham Miln, if you are reading this:
Sorry, but I have to respond to you in this fashion. Due to the nature of my often controversial posts in these NGs, I never let my true identity out via emails, and a response required an email reply in your case.
In any event, after checking your website, it appears that your app' is not yet capable of automatically "stopping" and "exiting" all app's just prior to putting the computer to sleep.

Message #5 - Posted 2005/11/04 - Graham Miln

Previously, Mark Conrad wrote:

In any event, after checking your website, it appears that your app' is not yet capable of automatically "stopping" and "exiting" all app's just prior to putting the computer to sleep.

Are you sure you need to quit all open applications before sleep?

PM3 can be scheduled to automatically log out. Our log out event goes through a process of quitting all open user applications - and eventually sends unix kill signals to those applications ignoring the nicer AppleEvent quit events.

Alternatively you could just schedule a sleep event with PM3. :-)

Hope that helps,

Graham

mailto:support@dssw.co.uk
http://www.dssw.co.uk/ Mac energy saving and power management software

Message #6 - Posted 2005/11/04 - Donald Hall

Previously, Graham Miln wrote:

Previously, Mark Conrad wrote:

Perhaps there is a 3rd party util' that will interrupt all active app's, then shut them off, so that sleep will always work?

Mark-

Hi Mark,

We developed Power Manager for exactly this kind of task. :-)

http://www.dssw.co.uk/powermanager/

Kind regards,

Graham

You might want to look at a little application I publish called Script Timer. In the latest version (2.3.1) you can schedule actions to take place just before sleep - so you could do anything you wanted at this time by making the action an AppleScript or shell script, or whatever you wanted.

Regards,

Don

Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.appsandmore.com don at appsandmore dot com
"Schedule your scripts with Script Timer"

Need Help? Have a Question?

Looking for more help, comments, and answers?

Ask your questions on Ask Different. Ask Different is a community of Apple users ready to help.