Greetings, folks!
I have a shell script (appended below) running as a log-out event (I use it as a test for more productive uses. ). It works great! But when I boot into Safe Mode, I cannot log out or restart without the computer freezing; a forced shutdown is necessary.
I expect that booting into Safe Mode disables some function that is then unable to run when the log-out script is called and the screen has been reduced to just the desktop with no menubar, icons, or mouse. There is no “spinning wheel.”
Is there some way to set the script such that it doesn’t freeze the system when logging out after a Safe Boot?
Thanks!
Richard Fairbanks
#!/bin/sh
osascript -e ˜set volume output volume 60'
osascript -e ˜say "good [[emph -]] night my [[emph -]] love" using "Vicki"'
sleep 1
/usr/bin/afplay -v 0.2 ˜/Users/me/Library/Sounds/Fairy Wink.aac'
osascript -e ˜set volume with output muted'
sleep 2 # this seems to be necessary to make sure the volume gets muted
Model: 2.33GHz MBPC2D
Browser: Google Chrome 7 10.0.634.0 dev
Operating System: Mac OS X (10.6)