-
All replies
-
Helpful answers
-
Apr 23, 2012 10:19 AM in response to mzelmano22by mzelmano22,By the way the script is:
tell application "Finder" to display dialog "Please Backup Your Data
There is a risk of data loss if the machine experiences a hardware failure or an accident occurs" buttons {"Log Out", "Cancel"} default button "Cancel" with icon stop
if button returned of result is "Log Out" then
tell application "System Events"
log out
end tell
end if
-
Apr 23, 2012 12:26 PM in response to mzelmano22by X423424X,You should investigate logout hooks.
Mac OS X: Creating a login hook
You could design the simple logout hook to launch your applescript or do it directly from the script via osascript.
-
Jun 19, 2012 2:47 PM in response to mzelmano22by rocion,Yes, please, add a logout button to the store.
I see there is a signout link on the community pages (e.g. at the top of this forum).
Maybe that will do the trick?
--
rocion