Hi,
I've been trying to come up with some script that will automatically log out a user (only have one user set up) after a certain amount of time - i.e. 30 minutes. Since this will be a public terminal, it's been decided that after 30 minutes of inactivity, it should simply log off...and this means that the "Do you want to save changes...?" confirmation screens must be bypassed. (Otherwise, the log out will eventually time out.)
I've tried different variations, such as "tell application "loginwindow" to «event aevtrlgo»", with no luck - the confirmation windows regarding saving open applications still appear. Is there anyway around this?
I don't have much programming or command-line experience, and most things I've looked up were a bit over my head (I don't have the time to get into the vast inner workings of Unix at this point, unfortunately). I've come across a few recommendations for using various "killall" commands, but most seemed to require knowing the specific PID of the open applications. I just want it to close all applications and basically log out...no warning (harsh, yes) or anything of the sort.
I apologize for the length of this, but this seemed like it would be easier than it's let on. The Mac Pro is OSX 10.7.4, if that helps...I've used Macs, but haven't done much on the scripting end. Any suggestions really would be appreciated.
Thanks!
I've been trying to come up with some script that will automatically log out a user (only have one user set up) after a certain amount of time - i.e. 30 minutes. Since this will be a public terminal, it's been decided that after 30 minutes of inactivity, it should simply log off...and this means that the "Do you want to save changes...?" confirmation screens must be bypassed. (Otherwise, the log out will eventually time out.)
I've tried different variations, such as "tell application "loginwindow" to «event aevtrlgo»", with no luck - the confirmation windows regarding saving open applications still appear. Is there anyway around this?
I don't have much programming or command-line experience, and most things I've looked up were a bit over my head (I don't have the time to get into the vast inner workings of Unix at this point, unfortunately). I've come across a few recommendations for using various "killall" commands, but most seemed to require knowing the specific PID of the open applications. I just want it to close all applications and basically log out...no warning (harsh, yes) or anything of the sort.
I apologize for the length of this, but this seemed like it would be easier than it's let on. The Mac Pro is OSX 10.7.4, if that helps...I've used Macs, but haven't done much on the scripting end. Any suggestions really would be appreciated.
Thanks!