<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: A Growl Hack to Remind You to Unplug Your Charger</title>
	<atom:link href="http://altentee.com/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/feed/" rel="self" type="application/rss+xml" />
	<link>http://altentee.com/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/</link>
	<description>Performance and Test Automation Experts</description>
	<lastBuildDate>Fri, 13 Aug 2010 04:08:44 +1000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pc spiele</title>
		<link>http://altentee.com/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/comment-page-1/#comment-168</link>
		<dc:creator>pc spiele</dc:creator>
		<pubDate>Thu, 05 Nov 2009 06:59:30 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/#comment-168</guid>
		<description>Hi..
Thank you for sharing such a nice information for scripting work of charger. I will surely bookmark it for future use. Good Work! Keep it up! This Scripting language is very useful for me. I would like to appreciate  you.</description>
		<content:encoded><![CDATA[<p>Hi..<br />
Thank you for sharing such a nice information for scripting work of charger. I will surely bookmark it for future use. Good Work! Keep it up! This Scripting language is very useful for me. I would like to appreciate  you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://altentee.com/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/comment-page-1/#comment-167</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 06 May 2008 02:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/#comment-167</guid>
		<description>No probs, thanks for the improvements. Probably because u are on different hardware to me. Original script works fine on macbookpro, but have since changed to ur more resilient masterpiece ...

cheers
Tim</description>
		<content:encoded><![CDATA[<p>No probs, thanks for the improvements. Probably because u are on different hardware to me. Original script works fine on macbookpro, but have since changed to ur more resilient masterpiece &#8230;</p>
<p>cheers<br />
Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lantrix</title>
		<link>http://altentee.com/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/comment-page-1/#comment-166</link>
		<dc:creator>Lantrix</dc:creator>
		<pubDate>Tue, 06 May 2008 02:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/#comment-166</guid>
		<description>Yeah OK I used cron too. Could not be stuffed finding where to put the plist.</description>
		<content:encoded><![CDATA[<p>Yeah OK I used cron too. Could not be stuffed finding where to put the plist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lantrix</title>
		<link>http://altentee.com/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/comment-page-1/#comment-165</link>
		<dc:creator>Lantrix</dc:creator>
		<pubDate>Tue, 06 May 2008 02:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/#comment-165</guid>
		<description>Using MacOS 10.5.2 this script failed for me. the awks you did on ioreg came back with the pipe character. Also the MaxCapacity grep matched 3 lines.

Instead of being reliant on the result being on a specific column, I used sed to look for the value after the equal sign. I also changed the grep on the MaxCapacity line to egrep and match a whole word, thereby eliminating the other matches (AbsoluteMaxCapacity). Here are the first two lines changed to suit:

&lt;pre lang=&quot;shell&quot;&gt;
set current_capacity to do shell script &quot;/usr/sbin/ioreg -w0 -l &#124; grep -E &#039;CurrentCapacity&#039; &#124;sed &#039;s/.*= \\(.*$\\)/\\1/&#039;&quot;
set max_capacity to do shell script &quot;/usr/sbin/ioreg -w0 -l &#124; egrep -wE &#039;MaxCapacity&#039; &#124;sed &#039;s/.*= \\(.*$\\)/\\1/&#039;&quot;
&lt;/pre&gt;

You will see I had to escape the sed backslashes for the applescript.</description>
		<content:encoded><![CDATA[<p>Using MacOS 10.5.2 this script failed for me. the awks you did on ioreg came back with the pipe character. Also the MaxCapacity grep matched 3 lines.</p>
<p>Instead of being reliant on the result being on a specific column, I used sed to look for the value after the equal sign. I also changed the grep on the MaxCapacity line to egrep and match a whole word, thereby eliminating the other matches (AbsoluteMaxCapacity). Here are the first two lines changed to suit:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">set current_capacity to do shell script &quot;/usr/sbin/ioreg -w0 -l | grep -E 'CurrentCapacity' |sed 's/.*= \\(.*$\\)/\\1/'&quot;
set max_capacity to do shell script &quot;/usr/sbin/ioreg -w0 -l | egrep -wE 'MaxCapacity' |sed 's/.*= \\(.*$\\)/\\1/'&quot;</pre></div></div>

<p>You will see I had to escape the sed backslashes for the applescript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://altentee.com/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/comment-page-1/#comment-164</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 06 May 2008 02:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/#comment-164</guid>
		<description>So do I really want to type all this:
&lt;pre lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot;
&quot;http://www.apple.
com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
&lt;dict&gt;
&lt;key&gt;Label&lt;/key&gt;
&lt;string&gt;com.apple.periodic-daily&lt;/string&gt;
&lt;key&gt;ProgramArguments&lt;/key&gt;
&lt;array&gt;
&lt;string&gt;/usr/sbin/periodic&lt;/string&gt;
&lt;string&gt;daily&lt;/string&gt;
&lt;/array&gt;
&lt;key&gt;LowPriorityIO&lt;/key&gt;
&lt;true/&gt;
&lt;key&gt;Nice&lt;/key&gt;
&lt;integer&gt;1&lt;/integer&gt;
&lt;key&gt;StartCalendarInterval&lt;/key&gt;
&lt;dict&gt;
&lt;key&gt;Hour&lt;/key&gt;
&lt;integer&gt;3&lt;/integer&gt;
&lt;key&gt;Minute&lt;/key&gt;
&lt;integer&gt;15&lt;/integer&gt;
&lt;/dict&gt;
&lt;/dict&gt;
&lt;/plist&gt;
&lt;/pre&gt;

Just to replace 1 line in cron?
Nah. Deprecated, but still supported ...</description>
		<content:encoded><![CDATA[<p>So do I really want to type all this:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #00bbdd;">&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot;</span>
<span style="color: #00bbdd;">&quot;http://www.apple.</span>
<span style="color: #00bbdd;">com/DTDs/PropertyList-1.0.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plist</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Label<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.apple.periodic-daily<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>ProgramArguments<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/usr/sbin/periodic<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>daily<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>LowPriorityIO<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;true</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Nice<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;integer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/integer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>StartCalendarInterval<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Hour<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;integer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/integer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Minute<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;integer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>15<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/integer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Just to replace 1 line in cron?<br />
Nah. Deprecated, but still supported &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lantrix</title>
		<link>http://altentee.com/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/comment-page-1/#comment-163</link>
		<dc:creator>Lantrix</dc:creator>
		<pubDate>Mon, 05 May 2008 14:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://90kts.com/blog/2008/a-growl-hack-to-remind-you-to-unplug-your-charger/#comment-163</guid>
		<description>I know you are a hard core Unix Wannabe, so cron was your first thought - but since this is a Mac Post I thought I would let you know that cron was deprecated for launchd from 10.4 onwards. See http://developer.apple.com/macosx/launchd.html</description>
		<content:encoded><![CDATA[<p>I know you are a hard core Unix Wannabe, so cron was your first thought &#8211; but since this is a Mac Post I thought I would let you know that cron was deprecated for launchd from 10.4 onwards. See <a href="http://developer.apple.com/macosx/launchd.html" rel="nofollow">http://developer.apple.com/macosx/launchd.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
