The new Proxi 1.2 automation app from Griffin is a free, marvelous, general-purpose macro program. I've used it to resolve some inconsistent behavior from the Safe Sleep command on my PowerBook 15" (it's the last revision, so it's Safe Sleep savvy). Actually, I am using A helper script to enter Safe Sleep on demand, published here last November. But, since 10.4.7 at least, the script somehow stopped working, and I can't enter Safe Sleep every time (sometimes, my PB simply enters normal sleep instead).
So I rewrote the original script in order to use the Sleep monitor trigger in Proxi. Basically, I now use two scripts: The first tells the PB to hibernate, the second tells the PB to get back to normal sleep. Wonderful!
Here are the details:
- Use this AppleScript code (adapted from the previous hint) to enter Safe Sleep mode (your machine will hibernate immediately). You can attach the script to any launcher, like Butler, Quicksilver, etc. You could also add to the script an initial dialog asking to confirm the hibernate task.
- In Proxi, choose the Sleep Monitor trigger.
- Choose 'Trigger when computer did wake' in the trigger settings.
- In the Extra Values section, choose Finder as a running app.
- Insert a task to the Sleep Monitor trigger, and choose an AppleScript task.
- In the AppleScript task, choose 'Run custom AppleScript,' and paste this code (you may then check its syntax).

