How to Perform an Event with AppleScript

Power Manager lets you build events capable of performing complex sequences of actions. Power Manager also lets you schedule these events to occur on specific triggers, such as the time of day or after user inactivity. What if no trigger suits your needs? In this situation, you will want to perform the event yourself.

Let’s look at how to perform an event using AppleScript. Power Manager exposes its entire range of capabilities through AppleScript, and being able to perform an event is included.

Event detail showing in the Power Manager System Preference on Mac OS X

Event detail showing in the Power Manager System Preference on Mac OS X

Continue reading

This recipe requires Power Manager. Download Power Manager for 30 days for free.
Posted in AppleScript, PM4, PMPRO4, Power Manager, Recipe | Tagged , | Comments Off

How to Turn Off All Event Notifications

Power Manager works hard to ensure users are notified of pending events. Notifications take the form of warning notifications, a count down timer in the menu bar, and full screen alerts as significant events perform. A few are required but most are optional. However, sometimes people want to turn off the optional built-in notifications.

Power Manager notification for a pending Switch to Login Window event

Power Manager notification for a pending Switch to Login Window event

Turning off all notifications is not commonly desirable, but it is supported. It is possible because it allows you to replace the notifications with your own implementation.

You might like to switch off Power Manager’s notifications and instead rely on Growl notifications instead. The default detailed below makes this easy.

Before turning off all notifications, maybe you only want to affect one event. In this case, we have previously shown how to turn off notifications for a single event.

Power Manager lets you turn off notifications with a default. The default does not change how Power Manager works. Due notifications and pending notifications are still tracked. Observing processes will still be informed when a notification should be displayed or removed.

The default tells Power Manager’s own pmnotify.app not to display any notifications. The default commands below are user specific and takes effect when the user next logs in, or when pmnotify next launches.

Disable Power Manager Notifications

  1. Launch Terminal.app.
  2. Enter the following command:
    defaults write uk.co.dssw.powermanager notifier.notifications -bool no
  3. Enter the following command:
    killall pmnotify

Enable Power Manager Notifications

  1. Launch Terminal.app.
  2. Enter the following command:
    defaults delete uk.co.dssw.powermanager notifier.notifications -bool yes
  3. Enter the following command:
    killall pmnotify
Posted in PM4, PMPRO4, Power Manager, Recipe | Tagged , | Comments Off

Happy New Year

Last year, 2011, marked 14 years since I incorporated DssW with John Fancourt. Those years have passed quickly and I am grateful for all those we have had the opportunity to have met, worked with, and helped along the way.

New Year Fireworks

New Year Fireworks

Even after 14 years, I continue to feel our best work is ahead of us. I look forward to sharing our continuing efforts with you in 2012.

From everyone at DssW, we hope you have a wonderful and happy 2012.

Posted in Personal | Tagged | Comments Off

How to Turn Off an Event’s Notifications

Power Manager automatically notifies the user of pending triggers. These notifications provide an opportunity for users to respond to an event. However, there are situations where notifications are not required, or where notifications get in the way. This recipe shows how to turn off notifications for a single event.

Power Manager notifications allow users to better understand when and why an event is taking place. If your schedule includes an enforced log out, then the notification becomes essential in warning the user to save any changes.

Notifications occur before timed based triggers and when an event is performed. These notifications include a count down in the menu bar, a small alert window, and – where Growl is installed – a Growl notification.

What if you do not want to display notifications? Maybe your Mac is showing a Keynote presentation or playing a full screen film. In these situations, it might be better just to perform the event with no prior notifications.

Let’s walk through how to turn off notifications for a single Power Manager event.

We are going to work with a daily shut down event. This event includes a single daily trigger, and actions to shut down the Mac.

Continue reading

Posted in PM4, Power Manager, Recipe | Tagged , , | Comments Off