TKoyn
11-23-2006, 03:28 PM
I tried to set a logout script to turn my system volume down as follows:
sudo defaults write /Library/Preferences/com.apple.loginwindow LogoutHook "/logoutscript.command"
/logoutscript.command contains the following
#!/bin/sh
/usr/bin/osascript -e 'set volume 0'
The script runs by itself when manually invoked, but does not run when I log out. The permissions on the script are "-rwxrwxrwx" and I even tried setting owner/group to root and wheel since I understand the script runs as root.
I checked the com.apple.loginwindow.plist file with the property list editor and find the defaults command made the entry.
How would I determine why it is not running?
Thanks in advance
sudo defaults write /Library/Preferences/com.apple.loginwindow LogoutHook "/logoutscript.command"
/logoutscript.command contains the following
#!/bin/sh
/usr/bin/osascript -e 'set volume 0'
The script runs by itself when manually invoked, but does not run when I log out. The permissions on the script are "-rwxrwxrwx" and I even tried setting owner/group to root and wheel since I understand the script runs as root.
I checked the com.apple.loginwindow.plist file with the property list editor and find the defaults command made the entry.
How would I determine why it is not running?
Thanks in advance