Hello everybody,
I need to start an applescript when a user logs in to the computer and an other script at a user logout.
I did a research at the internet and fount the startup items folder where I can start something on computer startup and something on computer shutdown. The problem of this is that dies not work with a per user basis.
an other way I fount was the
sudo defaults write com.apple.loginwindow LoginHook [an .sh script]
sudo defaults write com.apple.loginwindow LogoutHook [an .sh script]
but it does not seem to work.
I dont know if I write something wrong in the command but the system ignores the scripts I write at these hooks.
Do you know any other ideas of how I can fix this?? Is there a program can do that???
thanks in advance
I need to start an applescript when a user logs in to the computer and an other script at a user logout.
I did a research at the internet and fount the startup items folder where I can start something on computer startup and something on computer shutdown. The problem of this is that dies not work with a per user basis.
an other way I fount was the
sudo defaults write com.apple.loginwindow LoginHook [an .sh script]
sudo defaults write com.apple.loginwindow LogoutHook [an .sh script]
but it does not seem to work.
I dont know if I write something wrong in the command but the system ignores the scripts I write at these hooks.
Do you know any other ideas of how I can fix this?? Is there a program can do that???
thanks in advance