Any way to "log out" on a schedule?

Perhaps there is a 3rd party util' that will interrupt all active
Mark Conrad wrote on :

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-

Tom Stiller replied on :

In article 021120051535414809%NoSpamDammit@redacted.invalid, Mark Conrad NoSpamDammit@redacted.invalid 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.

Graham Miln replied on :

In article 021120051535414809%NoSpamDammit@redacted.invalid, Mark Conrad NoSpamDammit@redacted.invalid 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

Mark Conrad replied on :

In article tomstiller-355AB0.23135402112005@redacted.invalid, Tom Stiller tomstiller@redacted.invalid 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.

Graham Miln replied on :

In article 031120050723520975%NoSpamDammit@redacted.invalid, Mark Conrad NoSpamDammit@redacted.invalid 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

Donald Hall replied on :

In article support-F1FD0C.18485403112005@redacted.invalid, Graham Miln support@redacted.invalid wrote:

In article 021120051535414809%NoSpamDammit@redacted.invalid, Mark Conrad NoSpamDammit@redacted.invalid 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