Re: Shut Down Folder in OS X?
Re: Shut Down Folder in OS X?
- Subject: Re: Shut Down Folder in OS X?
- From: Andrew Oliver <email@hidden>
- Date: Thu, 03 Apr 2003 00:24:15 -0800
Do you really want shutdown actions, or log out actions?
There's a subtle difference. A user can log out without shutting down the
system.
If you want log out items, consider the logoutHook in the shell.
Create a script to do whatever you want, and add it to the system
preferences.
For example, if the script is called /etc/logout.sh
sudo defaults write com.apple.loginwindow LogoutHook /etc/logout.sh
Then the script will be run as a user logs out.
I don't know of any mechanism for a true 'shutdown' item, although I'm
guessing there's some manipulation of the standard startup items system
since each startup item has rules for 'start' and 'stop' parameters. Maybe
someone else can enlighten me.
Andrew
:)
On 4/2/03 5:22 PM, "Jay" <email@hidden> wrote:
>
Does anyone know if there's a way in Unix to do what the Shut Down
>
Folder used to do?
>
>
Basically, I'm trying to figure out a way to display a dialog when the
>
user shuts their machine down (in OS X) which will give them the
>
opportunity to back up files if they've forgotten.
>
>
Thanks for your help.
>
>
Jay
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.