<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Energy Aware</title>
	<atom:link href="http://www.dssw.co.uk/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dssw.co.uk/blog</link>
	<description>An insight into DssW, energy saving, and business</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Perform an Event with AppleScript</title>
		<link>http://www.dssw.co.uk/blog/2012/02/01/how-to-perform-an-event-with-applescript/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-perform-an-event-with-applescript</link>
		<comments>http://www.dssw.co.uk/blog/2012/02/01/how-to-perform-an-event-with-applescript/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 11:08:49 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[PM4]]></category>
		<category><![CDATA[PMPRO4]]></category>
		<category><![CDATA[Power Manager]]></category>
		<category><![CDATA[Recipe]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[perform]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1531</guid>
		<description><![CDATA[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. <a href="http://www.dssw.co.uk/blog/2012/02/01/how-to-perform-an-event-with-applescript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dssw.co.uk/powermanager/standard/index.html?utm_source=dssw&#038;utm_medium=blog&#038;utm_campaign=how-to" title="Power Manager">Power Manager</a> 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.</p>
<p>Let&#8217;s look at how to perform an event using AppleScript. Power Manager exposes its <a href="http://www.dssw.co.uk/powermanager/guide/v4/applescript/index.html?utm_source=dssw&#038;utm_medium=blog&#038;utm_campaign=how-to" title="Power Manager AppleScript Guide">entire range of capabilities through AppleScript</a>, and being able to perform an event is included.</p>
<div id="attachment_1535" class="wp-caption aligncenter" style="width: 603px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2012/01/power-manager-system-preference-mac-os-x.jpg" alt="Event detail showing in the Power Manager System Preference on Mac OS X" title="Event detail showing in the Power Manager System Preference on Mac OS X" width="593" height="385" class="size-full wp-image-1535" /><p class="wp-caption-text">Event detail showing in the Power Manager System Preference on Mac OS X</p></div>
<p><span id="more-1531"></span></p>
<p>I am going to assume you have an event you want to perform.</p>
<p>Take a look at your event using either the Power Manager System Preference, or with Power Manager Professional. Make sure the event has the <strong>Can Perform On Demand</strong> <strong>Behaviour</strong> set.</p>
<div id="attachment_1534" class="wp-caption aligncenter" style="width: 603px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2012/01/power-manager-event-editor.jpg" alt="A Power Manager event with On Demand behaviour enabled." title="A Power Manager event with On Demand behaviour enabled." width="593" height="561" class="size-full wp-image-1534" /><p class="wp-caption-text">A Power Manager event with On Demand behaviour enabled.</p></div>
<p>To write the shortest AppleScript, you will need the unique identifier (<em>ID</em>) of your Power Manager event.</p>
<h3>Perform an Event by Unique Identifier</h3>
<p>The following AppleScript asks Power Manager to perform the event with a specific unique identifier:</p>
<pre class="AppleScript">tell application "/Library/Application Support/Power Manager/Agents/Power Manager Scripting.app"

	tell On Demand to perform event with id "3C6C93FC-2D4C-4514-96ED-5867A0E25B34"

end tell</pre>
<div id="attachment_1533" class="wp-caption aligncenter" style="width: 573px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2012/01/applescript-perform-event-by-unique-id.jpg" alt="An AppleScript to perform a Power Manager event by unique identifier (ID)." title="An AppleScript to perform a Power Manager event by unique identifier (ID)." width="563" height="252" class="size-full wp-image-1533" /><p class="wp-caption-text">An AppleScript to perform a Power Manager event by unique identifier (ID).</p></div>
<p>Using the unique identifier means the name of the event can be changed without affecting your AppleScript.</p>
<h3>Perform an Event by Name</h3>
<p>Having to embed an event&#8217;s unique identifier into an AppleScript is not always welcome. The odds of making a mistake in the unique identifier are fairly high. Let&#8217;s look at how to perform an event using only the event&#8217;s name:</p>
<pre class="AppleScript">tell application "/Library/Application Support/Power Manager/Agents/Power Manager Scripting.app"

	tell On Demand
		set myEventID to trigger ID of events whose name is "Lab Event"
		perform event with id myEventID
	end tell

end tell</pre>
<div id="attachment_1532" class="wp-caption aligncenter" style="width: 553px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2012/01/applescript-perform-event-by-name.jpg" alt="An AppleScript to perform a Power Manager event by name." title="An AppleScript to perform a Power Manager event by name." width="543" height="289" class="size-full wp-image-1532" /><p class="wp-caption-text">An AppleScript to perform a Power Manager event by name.</p></div>
<p>This AppleScript adds an extra couple of lines. The main difference is how the AppleScript finds the event&#8217;s unique identifier.</p>
<p>The unique identifier is looked up by name and stored in the <code>myEventID</code> variable. This variable is then passed to the perform command in place of the long string of letters and numbers we previously used.</p>
<h3>Why Unique Identifiers</h3>
<p>Power Manager uses unique identifiers because they are unique within your schedule. Multiple events can share the same name, but never the same unique identifier.</p>
<p>By using using unique identifiers we can avoid the potential problem of matching multiple events when performing the event search.</p>
<p>Where possible prefer unique identifiers in your AppleScripts. If this is not possible, be prepared to deal with events sharing matching names – and names that can be fully internationalised.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2012/02/01/how-to-perform-an-event-with-applescript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Turn Off All Event Notifications</title>
		<link>http://www.dssw.co.uk/blog/2012/01/18/how-to-turn-off-all-event-notifications/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-turn-off-all-event-notifications</link>
		<comments>http://www.dssw.co.uk/blog/2012/01/18/how-to-turn-off-all-event-notifications/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 23:37:15 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[PM4]]></category>
		<category><![CDATA[PMPRO4]]></category>
		<category><![CDATA[Power Manager]]></category>
		<category><![CDATA[Recipe]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[Quiet]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1524</guid>
		<description><![CDATA[Power Manager works hard to ensure users are notified of pending events. These 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. <a href="http://www.dssw.co.uk/blog/2012/01/18/how-to-turn-off-all-event-notifications/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dssw.co.uk/powermanager/standard/index.html?utm_source=dssw&#038;utm_medium=blog&#038;utm_campaign=how-to">Power Manager</a> 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.</p>
<div id="attachment_1525" class="wp-caption aligncenter" style="width: 420px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2012/01/0-power-manager-notification-switch-to-login-window.jpg" alt="Power Manager notification for a pending Switch to Login Window event" title="Power Manager notification for a pending Switch to Login Window event" width="410" height="170" class="size-full wp-image-1525" /><p class="wp-caption-text">Power Manager notification for a pending Switch to Login Window event</p></div>
<p>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.</p>
<p>You might like to switch off Power Manager&#8217;s notifications and instead rely on Growl notifications instead. The default detailed below makes this easy.</p>
<p>Before turning off all notifications, maybe you only want to affect one event. In this case, we have previously shown <a href="http://www.dssw.co.uk/blog/2011/12/21/how-to-turn-off-an-events-notifications/" title="How to Turn Off an Event’s Notifications">how to turn off notifications for a single event</a>.</p>
<p>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.</p>
<p>The default tells Power Manager&#8217;s own <a href="http://dssw.co.uk/powermanager/guide/v4/administrator/pme.agent.pmnotify-app.html">pmnotify.app</a> 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.</p>
<h3>Disable Power Manager Notifications</h3>
<ol>
<li>Launch <strong>Terminal.app</strong>.</li>
<li>Enter the following command:
<pre class="shell">defaults write uk.co.dssw.powermanager notifier.notifications -bool no</pre>
</li>
<li>Enter the following command:
<pre class="shell">killall pmnotify</pre>
</li>
</ol>
<h3>Enable Power Manager Notifications</h3>
<ol>
<li>Launch <strong>Terminal.app</strong>.</li>
<li>Enter the following command:
<pre class="shell">defaults delete uk.co.dssw.powermanager notifier.notifications -bool yes</pre>
</li>
<li>Enter the following command:
<pre class="shell">killall pmnotify</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2012/01/18/how-to-turn-off-all-event-notifications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy New Year</title>
		<link>http://www.dssw.co.uk/blog/2012/01/03/happy-new-year/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=happy-new-year</link>
		<comments>http://www.dssw.co.uk/blog/2012/01/03/happy-new-year/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 23:49:09 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Happy New Year]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1517</guid>
		<description><![CDATA[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. <a href="http://www.dssw.co.uk/blog/2012/01/03/happy-new-year/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<div id="attachment_1519" class="wp-caption aligncenter" style="width: 603px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2012/01/New-Year-Fireworks.jpg" alt="New Year Fireworks" title="New Year Fireworks" width="593" height="445" class="size-full wp-image-1519" /><p class="wp-caption-text">New Year Fireworks</p></div>
<p>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.</p>
<p>From everyone at DssW, we hope you have a wonderful and happy 2012.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2012/01/03/happy-new-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Turn Off an Event&#8217;s Notifications</title>
		<link>http://www.dssw.co.uk/blog/2011/12/21/how-to-turn-off-an-events-notifications/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-turn-off-an-events-notifications</link>
		<comments>http://www.dssw.co.uk/blog/2011/12/21/how-to-turn-off-an-events-notifications/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 01:19:49 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[PM4]]></category>
		<category><![CDATA[Power Manager]]></category>
		<category><![CDATA[Recipe]]></category>
		<category><![CDATA[event editor]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[recipe]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1507</guid>
		<description><![CDATA[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. <a href="http://www.dssw.co.uk/blog/2011/12/21/how-to-turn-off-an-events-notifications/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dssw.co.uk/powermanager/standard/index.html?utm_source=dssw&#038;utm_medium=blog&#038;utm_campaign=how-to" title="Power Manager">Power Manager</a> 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.</p>
<p>Power Manager notifications allow users to better understand when and why an event is taking place. If your schedule includes <a href="http://www.dssw.co.uk/blog/2011/10/09/how-to-enforce-a-maximum-use-time-on-mac-os-x/" title="How to Enforce a Maximum Use Time on Mac OS X">an enforced log out</a>, then the notification becomes essential in warning the user to save any changes.</p>
<p>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 href="http://www.dssw.co.uk/blog/2011/11/15/how-to-extend-power-manager-with-growl/" title="How to Extend Power Manager with Growl">a Growl notification</a>.</p>
<p>What if you do not want to display notifications? Maybe your Mac is <a href="http://www.dssw.co.uk/blog/2010/08/17/how-to-automatically-start-a-keynote-presentation/" title="How to Automatically Start a Keynote Presentation">showing a Keynote presentation</a> or playing a full screen film. In these situations, it might be better just to perform the event with no prior notifications.</p>
<p>Let&#8217;s walk through how to turn off notifications for a single Power Manager event.</p>
<p>We are going to work with a <a href="http://www.dssw.co.uk/blog/2011/07/26/how-to-schedule-your-mac-to-shut-down/" title="How to Schedule Your Mac to Shut Down">daily shut down event</a>. This event includes a single daily trigger, and actions to shut down the Mac.</p>
<p><iframe src="http://www.youtube.com/embed/LFl3hJidEro?rel=0" frameborder="0" width="618" height="352"></iframe></p>
<p><span id="more-1507"></span></p>
<h3>Quieten a Power Manager Trigger</h3>
<ol>
<li>Launch <strong>System Preferences</strong> and select <strong>Power Manager</strong>.
<p><div id="attachment_1508" class="wp-caption aligncenter" style="width: 603px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/1-power-manager-shut-down-event.jpg" alt="Launch Power Manager from the System Preferences in Mac OS X" title="Launch Power Manager from the System Preferences in Mac OS X" width="593" height="385" class="size-full wp-image-1508" /><p class="wp-caption-text">Launch Power Manager from the System Preferences in Mac OS X</p></div>
</li>
<li>Open the event to edit in the event editor; hold down the <strong>Option</strong> key and double-click on the event.
<p><div id="attachment_1509" class="wp-caption aligncenter" style="width: 603px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/2-power-manager-event-editor.jpg" alt="Open the event in the Power Manager event editor" title="Open the event in the Power Manager event editor" width="593" height="561" class="size-full wp-image-1509" /><p class="wp-caption-text">Open the event in the Power Manager event editor</p></div>
</li>
<li>Edit the event&#8217;s trigger; select the Trigger&#8217;s <strong>Action cog</strong> > <strong>Edit</strong> pop-up menu item.
<p><div id="attachment_1511" class="wp-caption aligncenter" style="width: 603px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/4-power-manager-edit-the-trigger.jpg" alt="Edit the Trigger with the Action cog menu" title="Edit the Trigger with the Action cog menu" width="593" height="561" class="size-full wp-image-1511" /><p class="wp-caption-text">Edit the Trigger with the Action cog menu</p></div>
</li>
<li>Include the trigger&#8217;s optional <strong>Quiet</strong> field; select the <strong>Optional</strong> > <strong>Quiet</strong> pop-up menu item.
<p><div id="attachment_1510" class="wp-caption aligncenter" style="width: 603px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/3-power-manager-add-the-quiet-optional-field.jpg" alt="Add the optional Quiet field to the Trigger" title="Add the optional Quiet field to the Trigger" width="593" height="561" class="size-full wp-image-1510" /><p class="wp-caption-text">Add the optional Quiet field to the Trigger</p></div>
</li>
<li>Enable the <strong>Quiet</strong> checkbox to suppress notifications.
<p><div id="attachment_1512" class="wp-caption aligncenter" style="width: 603px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/5-enable-the-quiet-option.jpg" alt="Enable the newly added Quiet option to suppress notifications" title="Enable the newly added Quiet option to suppress notifications" width="593" height="561" class="size-full wp-image-1512" /><p class="wp-caption-text">Enable the newly added Quiet option to suppress notifications</p></div>
</li>
<li>Click <strong>Apply</strong> to save the changes to the modified trigger.</li>
<li>Click <strong>Save</strong> to save the changes to the event.</li>
</ol>
<p>With the above steps completed, the event&#8217;s trigger will no longer show pending notifications. Note that a final warning will still be shown as the shut down is performed; this final warning can not be disabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2011/12/21/how-to-turn-off-an-events-notifications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sleep Monitor Lite &#8211; Personal Mac Power Monitoring</title>
		<link>http://www.dssw.co.uk/blog/2011/12/15/sleep-monitor-lite-personal-mac-power-monitoring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sleep-monitor-lite-personal-mac-power-monitoring</link>
		<comments>http://www.dssw.co.uk/blog/2011/12/15/sleep-monitor-lite-personal-mac-power-monitoring/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 03:49:33 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[Energy saving]]></category>
		<category><![CDATA[Sleep Monitor]]></category>
		<category><![CDATA[SML3]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1501</guid>
		<description><![CDATA[We are pleased to announce Sleep Monitor Lite for Mac OS X. Sleep Monitor Lite builds a time line of how your Mac is using energy. Battery and power information is collected over months to create a detailed insight into how the energy is spent. <a href="http://www.dssw.co.uk/blog/2011/12/15/sleep-monitor-lite-personal-mac-power-monitoring/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We are pleased to announce <a href="http://www.dssw.co.uk/sleepmonitor/lite/index.html?utm_source=dssw&#038;utm_medium=blog&#038;utm_campaign=sml300" title="Sleep Monitor Lite">Sleep Monitor Lite</a> for Mac OS X. Sleep Monitor Lite builds a time line of how your Mac is using energy. Battery and power information is collected over months to create a detailed insight into how the energy is spent.</p>
<div id="attachment_1502" class="wp-caption aligncenter" style="width: 600px"><img src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/dssw-sleep-monitor-lite.jpg" alt="DssW Sleep Monitor Lite for Mac OS X" title="DssW Sleep Monitor Lite for Mac OS X" width="590" height="369" class="size-full wp-image-1502" /><p class="wp-caption-text">DssW Sleep Monitor Lite for Mac OS X</p></div>
<p>Sleep Monitor Lite is the younger brother to our established <a href="http://www.dssw.co.uk/sleepmonitor/index.html?utm_source=dssw&#038;utm_medium=blog&#038;utm_campaign=sml300" title="Sleep Monitor Lite">Sleep Monitor</a> product.</p>
<p>Sleep Monitor Lite requires Mac OS X 10.6 or later, and a desktop or portable Mac.</p>
<p>Sleep Monitor Lite is <a rel="nofollow" href="http://itunes.com/mac/dssw/sleepmonitorlite" title="DssW Sleep Monitor Lite on the Mac App Store">available only on the Mac App Store</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2011/12/15/sleep-monitor-lite-personal-mac-power-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make Your Mac Sleep</title>
		<link>http://www.dssw.co.uk/blog/2011/12/12/how-to-make-your-mac-sleep/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-make-your-mac-sleep</link>
		<comments>http://www.dssw.co.uk/blog/2011/12/12/how-to-make-your-mac-sleep/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 22:55:00 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[Energy saving]]></category>
		<category><![CDATA[Automator]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[sleep]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1485</guid>
		<description><![CDATA[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. <a href="http://www.dssw.co.uk/blog/2011/12/12/how-to-make-your-mac-sleep/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<h3>Sleep via AppleScript</h3>
<p>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:</p>
<pre class="AppleScript">tell the application "Finder" to sleep</pre>
<div id="attachment_1492" class="wp-caption aligncenter" style="width: 439px"><img class="size-full wp-image-1492" title="An AppleScript to make your Mac sleep" src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/make-mac-sleep-applescript.jpg" alt="An AppleScript to make your Mac sleep" width="429" height="278" /><p class="wp-caption-text">An AppleScript to make your Mac sleep</p></div>
<p>The Mac will sleep immediately when this AppleScript is run.</p>
<h3>Sleep via Automator</h3>
<p>Automator does not include a built-in action for making your Mac sleep. We are going to create one using the <strong>Run AppleScript</strong> action.</p>
<ol>
<li>Create a new workflow in <strong>Automator</strong>.
<p><div id="attachment_1490" class="wp-caption aligncenter" style="width: 661px"><img class="size-full wp-image-1490" title="Create a new workflow in Automator" src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/1-make-mac-sleep-automator.jpg" alt="Create a new workflow in Automator" width="651" height="606" /><p class="wp-caption-text">Create a new workflow in Automator</p></div></li>
<li>Find and add the <strong>Run AppleScript</strong> action.</li>
<li>Copy and paste the following AppleScript into the action:
<pre class="AppleScript">tell the application "Finder" to sleep</pre>
<p><div id="attachment_1491" class="wp-caption aligncenter" style="width: 715px"><img class="size-full wp-image-1491" title="Add an AppleScript action to make your Mac sleep" src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/2-make-mac-sleep-automator.jpg" alt="Add an AppleScript action to make your Mac sleep" width="705" height="601" /><p class="wp-caption-text">Add an AppleScript action to make your Mac sleep</p></div></li>
<li>Save your workflow.</li>
</ol>
<p>When this Automator workflow is run, your Mac will sleep immediately.</p>
<h3>Sleep via the Command Line</h3>
<p>The easiest way to make your Mac sleep using the command line is with the following:</p>
<pre class="shell">osascript -e 'tell application "Finder" to sleep'</pre>
<div id="attachment_1493" class="wp-caption aligncenter" style="width: 532px"><img class="size-full wp-image-1493" title="Terminal command to make your Mac sleep" src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/make-mac-sleep-command-line.jpg" alt="Terminal command to make your Mac sleep" width="522" height="131" /><p class="wp-caption-text">Terminal command to make your Mac sleep</p></div>
<p>When issued, this command will immediately put your Mac to sleep.</p>
<h3>The Common Theme</h3>
<p>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.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2011/12/12/how-to-make-your-mac-sleep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sleep Monitor 3 Released &#8211; Long Term Power Monitoring for Mac OS X</title>
		<link>http://www.dssw.co.uk/blog/2011/12/08/sleep-monitor-3-released-long-term-power-monitoring-for-mac-os-x/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sleep-monitor-3-released-long-term-power-monitoring-for-mac-os-x</link>
		<comments>http://www.dssw.co.uk/blog/2011/12/08/sleep-monitor-3-released-long-term-power-monitoring-for-mac-os-x/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 06:21:17 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[Sleep Monitor]]></category>
		<category><![CDATA[SM3]]></category>
		<category><![CDATA[Mac OS X 10.6]]></category>
		<category><![CDATA[Mac OS X 10.7]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1478</guid>
		<description><![CDATA[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. <a href="http://www.dssw.co.uk/blog/2011/12/08/sleep-monitor-3-released-long-term-power-monitoring-for-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We are pleased to announce the launch of <a href="http://www.dssw.co.uk/sleepmonitor/index.html?utm_source=dssw&amp;utm_medium=blog&amp;utm_campaign=sm300">Sleep Monitor 3 for Mac OS X</a>. Sleep Monitor gathers information over days, weeks, and months to build a complete picture of your Mac&#8217;s energy use.</p>
<p>Sleep Monitor 3 has been modernised to take advantage of the latest Mac OS X technologies.</p>
<div id="attachment_1479" class="wp-caption aligncenter" style="width: 603px"><img class="size-full wp-image-1479" title="DssW Sleep Monitor for Mac OS X" src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/12/DssW-Sleep-Monitor-for-Mac-OS-X.jpg" alt="DssW Sleep Monitor for Mac OS X" width="593" height="413" /><p class="wp-caption-text">DssW Sleep Monitor for Mac OS X</p></div>
<p>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.</p>
<p>A free 30 day <a title="Download a free Sleep Monitor 30 day demonstration" href="http://www.dssw.co.uk/sleepmonitor/download.html?utm_source=dssw&amp;utm_medium=blog&amp;utm_campaign=sm300">demonstration of Sleep Monitor</a> is now available.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2011/12/08/sleep-monitor-3-released-long-term-power-monitoring-for-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Activity Audit on the Mac App Store</title>
		<link>http://www.dssw.co.uk/blog/2011/11/22/activity-audit-on-the-mac-app-store/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=activity-audit-on-the-mac-app-store</link>
		<comments>http://www.dssw.co.uk/blog/2011/11/22/activity-audit-on-the-mac-app-store/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 22:31:53 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[Activity Audit]]></category>
		<category><![CDATA[Mac App Store]]></category>
		<category><![CDATA[iCloud]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1471</guid>
		<description><![CDATA[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 non-local auditing calendars. <a href="http://www.dssw.co.uk/blog/2011/11/22/activity-audit-on-the-mac-app-store/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<div id="attachment_1472" class="wp-caption aligncenter" style="width: 603px"><img class="size-full wp-image-1472" title="DssW Activity Audit with iCal on Mac OS X 10.7" src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/11/dssw-activity-audit-for-mac.jpg" alt="DssW Activity Audit with iCal on Mac OS X 10.7" width="593" height="371" /><p class="wp-caption-text">DssW Activity Audit with iCal on Mac OS X 10.7</p></div>
<p>Activity Audit v1.1.1 is a <strong>free upgrade for existing customers.</strong></p>
<p>A 14 day demonstration is available at <a href="http://www.dssw.co.uk/activityaudit/index.html?utm_source=dssw&amp;utm_medium=blog&amp;utm_campaign=aa111">Activity Audit</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2011/11/22/activity-audit-on-the-mac-app-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Extend Power Manager with Growl</title>
		<link>http://www.dssw.co.uk/blog/2011/11/15/how-to-extend-power-manager-with-growl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-extend-power-manager-with-growl</link>
		<comments>http://www.dssw.co.uk/blog/2011/11/15/how-to-extend-power-manager-with-growl/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 00:42:33 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[PM4]]></category>
		<category><![CDATA[Power Manager]]></category>
		<category><![CDATA[Recipe]]></category>
		<category><![CDATA[Growl]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1448</guid>
		<description><![CDATA[Power Manager supports the open source notification utility, Growl. Growl lets you customise how and when you see notifications from your favourite applications. <a href="http://www.dssw.co.uk/blog/2011/11/15/how-to-extend-power-manager-with-growl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Power Manager supports the open source notification utility, <a href="http://growl.info/">Growl</a>. Growl lets you customise how and when you see notifications from your favourite applications.</p>
<p>Not all applications support Growl. Those that do offer an impressive degree of control over how they can notify you.</p>
<div id="attachment_1460" class="wp-caption aligncenter" style="width: 310px"><img class="size-full wp-image-1460" title="Power Manager includes Growl support." src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/11/growl-open-source-notifications-for-Mac.jpg" alt="Power Manager includes Growl support." width="300" height="308" /><p class="wp-caption-text">Power Manager includes Growl support.</p></div>
<p><a title="Power Manager" href="http://www.dssw.co.uk/powermanager/standard/index.html?utm_source=dssw&amp;utm_medium=blog&amp;utm_campaign=how-to">Power Manager</a> 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.</p>
<p>Let&#8217;s use Growl to build upon the recipe for <a href="http://www.dssw.co.uk/blog/2011/10/24/how-to-display-a-message-after-a-long-task?utm_source=dssw&amp;utm_medium=blog&amp;utm_campaign=how-to">displaying a message after a long running task</a> on your Mac.</p>
<p><span id="more-1448"></span>We want Growl to notify us when an event has finished. These notifications are not built-in to Power Manager, so we need to add them. To do this we are going to use Growl&#8217;s AppleScript support and Power Manager&#8217;s ability to run AppleScripts as part of an event.</p>
<h3>Growl a Notification Using AppleScript</h3>
<ol>
<li>Launch <strong>System Preferences</strong> and select <strong>Power Manager</strong>.
<p><div id="attachment_1452" class="wp-caption aligncenter" style="width: 603px"><img class="size-full wp-image-1452" title="Open Power Manager." src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/11/1-power-manager-back-up-event.jpg" alt="Open Power Manager." width="593" height="385" /><p class="wp-caption-text">Open Power Manager.</p></div></li>
<li>Open the event to edit in the event editor; hold down the <strong>Option </strong>and double-click on your event.
<p><div id="attachment_1453" class="wp-caption aligncenter" style="width: 603px"><img class="size-full wp-image-1453" title="Open the Power Manager event in the event editor." src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/11/2-power-manager-event-editor.jpg" alt="Open the Power Manager event in the event editor." width="593" height="492" /><p class="wp-caption-text">Open the Power Manager event in the event editor.</p></div></li>
<li>Add a new action; select <strong>Add an action</strong> &gt; <strong>Run Script</strong> &gt; <strong>AppleScript</strong>.
<p><div id="attachment_1454" class="wp-caption aligncenter" style="width: 603px"><img class="size-full wp-image-1454" title="Add a new Run Script action to the Power Manager event." src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/11/3-power-manager-add-a-run-script-action.jpg" alt="Add a new Run Script action to the Power Manager event." width="593" height="689" /><p class="wp-caption-text">Add a new Run Script action to the Power Manager event.</p></div></li>
<li>Edit the new action; select the Action&#8217;s <strong>Action cog</strong> &gt; <strong>Edit</strong>.
<p><div id="attachment_1455" class="wp-caption aligncenter" style="width: 603px"><img class="size-full wp-image-1455" title="Edit the new Power Manager Run Script action." src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/11/4-power-manager-edit-the-action.jpg" alt="Edit the new Power Manager Run Script action." width="593" height="492" /><p class="wp-caption-text">Edit the new Power Manager Run Script action.</p></div></li>
<li>Copy and paste the following AppleScript into the <strong>Script </strong>field:
<pre class="applescript">#!/usr/bin/osascript

set myTitle to "<em>Event Finished</em>"
set myDescription to "<em>The event has finished running.</em>"

tell application "System Events"
	set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) &gt; 0
end tell

if isRunning then
	tell application id "com.Growl.GrowlHelperApp"
		set the allNotificationsList to {"My Notification"}
		set the enabledNotificationsList to {"My Notification"}

		register as application ¬
			"Growl AppleScript Sample" all notifications allNotificationsList ¬
			default notifications enabledNotificationsList ¬
			icon of application "Script Editor"

		--  Send a Notification...
		notify with name ¬
			"My Notification" title ¬
			myTitle description ¬
			myDescription application name "Growl AppleScript Sample"
	end tell
end if</pre>
<p>You can customise this AppleScript to change the <em>title</em> (myTitle) and <em>description</em> (myDescription). Both these values can be found near the top of the script.</p>
<p>Take a look at <a href="http://growl.info/documentation/applescript-support">Growl&#8217;s AppleScript</a> page for details on further customisations and tweaks.</p>
<p><div id="attachment_1456" class="wp-caption aligncenter" style="width: 603px"><img class="size-full wp-image-1456" title="Copy and paste in the AppleScript into the Script field." src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/11/5-power-manager-paste-in-the-applescript.jpg" alt="Copy and paste in the AppleScript into the Script field." width="593" height="561" /><p class="wp-caption-text">Copy and paste in the AppleScript into the Script field.</p></div></li>
<li>Click <strong>Apply</strong> to save the changes to the new action.</li>
<li>Click <strong>Save</strong> to save the changes to the event.</li>
</ol>
<div id="attachment_1457" class="wp-caption aligncenter" style="width: 603px"><img class="size-full wp-image-1457" title="Apply and Save the changes to the Power Manager event." src="http://www.dssw.co.uk/blog/wp-content/uploads/2011/11/6-power-manager-apply-and-save.jpg" alt="Apply and Save the changes to the Power Manager event." width="593" height="385" /><p class="wp-caption-text">Apply and Save the changes to the Power Manager event.</p></div>
<p>Your event is now ready to Growl after the all the actions have finished. Take the time to test your new event. It is important to always test changes as you make them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2011/11/15/how-to-extend-power-manager-with-growl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Darth Reviews and Recommends Power Manager</title>
		<link>http://www.dssw.co.uk/blog/2011/11/10/darth-reviews-and-recommends-power-manager/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=darth-reviews-and-recommends-power-manager</link>
		<comments>http://www.dssw.co.uk/blog/2011/11/10/darth-reviews-and-recommends-power-manager/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 22:15:43 +0000</pubDate>
		<dc:creator>Graham Miln</dc:creator>
				<category><![CDATA[PM4]]></category>
		<category><![CDATA[Power Manager]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.dssw.co.uk/blog/?p=1441</guid>
		<description><![CDATA[Thanks to Darth for reviewing and sharing how he uses Power Manager 4 on YouTube. <a href="http://www.dssw.co.uk/blog/2011/11/10/darth-reviews-and-recommends-power-manager/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://darth2499.blogspot.com/">Darth</a> for reviewing and sharing how he uses <a href="http://www.dssw.co.uk/powermanager/standard/index.html?utm_source=dssw&#038;utm_medium=blog&#038;utm_campaign=darth">Power Manager</a> 4 on YouTube.</p>
<p>Darth&#8217;s video review is embedded below and available at YouTube, <a href="http://www.youtube.com/watch?v=SwHCwNk954Y">Darth Reviews: Power Manager Mac App</a>.</p>
<p><iframe src="http://www.youtube.com/embed/SwHCwNk954Y?rel=0" frameborder="0" width="640" height="390"></iframe></p>
<p>Download your free <a href="http://www.dssw.co.uk/powermanager/standard/download.html?utm_source=dssw&#038;utm_medium=blog&#038;utm_campaign=darth">30 day demonstration of Power Manager</a> and try it on your Mac.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dssw.co.uk/blog/2011/11/10/darth-reviews-and-recommends-power-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

