How to Make Your Mac Sleep

This article shows how to put your Mac to sleep using a variety of methods. We will walk through how to make your Mac sleep using AppleScript, Automator, and the command line.

Sleep via AppleScript

You can ask the application Finder to put the Mac to sleep on your behalf. The following snippet works on Mac OS X 10.4 through to Mac OS X 10.7:

tell the application "Finder" to sleep
An AppleScript to make your Mac sleep

An AppleScript to make your Mac sleep

The Mac will sleep immediately when this AppleScript is run.

Sleep via Automator

Automator does not include a built-in action for making your Mac sleep. We are going to create one using the Run AppleScript action.

  1. Create a new workflow in Automator.

    Create a new workflow in Automator

    Create a new workflow in Automator

  2. Find and add the Run AppleScript action.
  3. Copy and paste the following AppleScript into the action:
    tell the application "Finder" to sleep

    Add an AppleScript action to make your Mac sleep

    Add an AppleScript action to make your Mac sleep

  4. Save your workflow.

When this Automator workflow is run, your Mac will sleep immediately.

Sleep via the Command Line

The easiest way to make your Mac sleep using the command line is with the following:

osascript -e 'tell application "Finder" to sleep'
Terminal command to make your Mac sleep

Terminal command to make your Mac sleep

When issued, this command will immediately put your Mac to sleep.

The Common Theme

You may have noticed all the methods above use a little bit of AppleScript. AppleScript lets you talk to savvy applications in a near English dialect. Different applications can perform different tasks for you, and with AppleScript you can chain these tasks together in powerful ways.

Posted in AppleScript, Energy saving | Tagged , , , | Comments Off

Sleep Monitor 3 Released – Long Term Power Monitoring for Mac OS X

We are pleased to announce the launch of Sleep Monitor 3 for Mac OS X. Sleep Monitor gathers information over days, weeks, and months to build a complete picture of your Mac’s energy use.

Sleep Monitor 3 has been modernised to take advantage of the latest Mac OS X technologies.

DssW Sleep Monitor for Mac OS X

DssW Sleep Monitor for Mac OS X

For a limited time only, Sleep Monitor 3 is available at a special price of just 10.99 USD or 7.99 EUR. This offer is only open until 31st December 2011.

A free 30 day demonstration of Sleep Monitor is now available.

Posted in Sleep Monitor, SM3 | Tagged , | Comments Off

Activity Audit on the Mac App Store

Activity Audit v1.1.1 is now available on the Mac App Store. Activity Audit creates a calendar showing when you use your Mac and what applications you run. This new version of Activity Audit introduces iCloud calendar support and support for other cloud based calendars.

DssW Activity Audit with iCal on Mac OS X 10.7

DssW Activity Audit with iCal on Mac OS X 10.7

Activity Audit v1.1.1 is a free upgrade for existing customers.

A 14 day demonstration is available at Activity Audit.

Posted in Activity Audit, Mac App Store | Tagged | Comments Off

How to Extend Power Manager with Growl

Power Manager supports the open source notification utility, Growl. Growl lets you customise how and when you see notifications from your favourite applications.

Not all applications support Growl. Those that do offer an impressive degree of control over how they can notify you.

Power Manager includes Growl support.

Power Manager includes Growl support.

Power Manager comes with Growl support built-in. If you have Growl installed, Power Manager will make use of it. Growl notifications will automatically appear when an event is pending and when an event starts performing.

Let’s use Growl to build upon the recipe for displaying a message after a long running task on your Mac.

Continue reading

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