0
votes
1answer
28 views

How to script a logout while screen is locked?

I want to log out a user via a shell script, after a delay. However, there's a few other issues: User does not have admin and/or root. Logout must complete even if screen is locked. Currently, I'm ...
0
votes
0answers
41 views

Eject Disk Image at logout with AppleScipt?

I would like to know how to use AppleScript to write a script that automatically ejects a disk image whenever the user logs out of their account. This script would be the complementary inverse to a ...
1
vote
2answers
793 views

How can I automatically run an AppleScript on shutdown or logout?

I am more used to the Javascript style event handlers, but is there a similar thing in applescript that listens to system events like logout or shutdown to execute code or is there a way to have an ...