Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Use Proxi triggers to improve Safe Sleep Apps
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:
  1. 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.
  2. In Proxi, choose the Sleep Monitor trigger.
  3. Choose 'Trigger when computer did wake' in the trigger settings.
  4. In the Extra Values section, choose Finder as a running app.
  5. Insert a task to the Sleep Monitor trigger, and choose an AppleScript task.
  6. In the AppleScript task, choose 'Run custom AppleScript,' and paste this code (you may then check its syntax).
That's it! It works 100% now on my PowerBook; normal sleep is back! As you can see, what I did was simply get back to normal hibernate mode (option 3) when the computer wakes up, and not delaying it with the initial command as in the original script. Maybe this will help someone else who was having trouble with Safe Sleep mode, like me.
    •    
  • Currently 2.50 / 5
  You rated: 4 / 5 (4 votes cast)
 
[12,432 views]  

10.4: Use Proxi triggers to improve Safe Sleep | 2 comments | Create New Account
Click here to return to the '10.4: Use Proxi triggers to improve Safe Sleep' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Proxi triggers to improve Safe Sleep
Authored by: osxpounder on Jul 21, '06 03:01:41PM

Fascinating. I like the idea -- I'll just have to try it to find whether I can rely on it [my past experience with radioSHARK software's updated version suggests caution with Griffin software].

I like the look of this bit, which might be useful to me:
" * Trigger when computer will sleep (checkbox): Generate a trigger just before the computer enters sleep mode. Your tasks have a maximum of 30 seconds to execute any tasks before the computer will sleep.
* Trigger when computer did wake (checkbox): Generate a trigger just as the computer wakes from sleep.

***************
Values

* IsSleeping (number): A non-zero number indicates the computer will begin sleeping. Otherwise the computer is waking from sleep.
* State (text): The name of the sleeping state of the computer when triggered. Values are 'Sleeping' or 'Waking'. "



[ Reply to This | # ]
10.4: Use Proxi triggers to improve Safe Sleep
Authored by: supermonix on Jul 23, '06 01:17:30AM

I think you mean "Trigger when computer will sleep" and not "Choose 'Trigger when computer did wake' in the trigger settings."
Is it?



[ Reply to This | # ]