<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:access="http://www.bloglines.com/about/specs/fac-1.0">
<access:restriction relationship="allow" />
<channel>
<title>SuperCard Shell Essentials</title>
<link>http://supercardshellessentials.pbwiki.com/</link>
<description>This wiki was created for the Yahoo! Group &apos;SuperCard&apos;.</description>
<language>en</language>
<image>
 <url>http://supercardshellessentials.pbwiki.com/feedlogo.gif</url>
 <title>PBwiki</title>
 <link>http://pbwiki.com/</link>
</image>
<generator>PBwiki 3.7</generator>
<webMaster>support@pbwiki.com</webMaster>
 <item>
  <title>php via shell</title>
  <link>http://supercardshellessentials.pbwiki.com/php+via+shell</link>
  <author>email.hidden@example.com (John Johnston)</author>
  <description><![CDATA[<h3>John Johnston edited <a href="http://supercardshellessentials.pbwiki.com/php+via+shell">php via shell</a></h3>
<div class="diffnone">!php via shell</div><br />
<div class="diffnone">You can use php via shell</div><br />
<span style="color:red;background-color:#fcc;">for e</span><br /><span style="font-weight:bold;color:green;background-color:#cfc;">E</span>xample<span style="color:red;background-color:#fcc;">,</span><br /><span style="font-weight:bold;color:green;background-color:#cfc;"> 1:</span> this script creates an md5 hash of a string:<br />
<div class="diffnone"> &lt;verbatim&gt;</div><br />
<div class="diffnone">function md5 thestring</div><br />
]]></description>
  <pubDate>Sun, 29 Oct 2006 07:26:36 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Miscellanous</title>
  <link>http://supercardshellessentials.pbwiki.com/Miscellanous</link>
  <author>email.hidden@example.com (John Johnston)</author>
  <description><![CDATA[<h3>John Johnston edited <a href="http://supercardshellessentials.pbwiki.com/Miscellanous">Miscellanous</a></h3>
<div class="diffnone">** [Image to html] ** ''uses Scriptable Image Processing System''</div><br />
<span style="font-weight:bold;color:green;background-color:#cfc;"></span>**<span style="font-weight:bold;color:green;background-color:#cfc;"> </span>[php via shell]<span style="font-weight:bold;color:green;background-color:#cfc;"> </span>** <span style="color:red;background-color:#fcc;">"</span><br /><span style="font-weight:bold;color:green;background-color:#cfc;">''</span>use php via shell<span style="color:red;background-color:#fcc;">"</span><br /><span style="font-weight:bold;color:green;background-color:#cfc;">''</span><br />
]]></description>
  <pubDate>Sun, 29 Oct 2006 07:26:12 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Miscellanous</title>
  <link>http://supercardshellessentials.pbwiki.com/Miscellanous</link>
  <author>email.hidden@example.com (John Johnston)</author>
  <description><![CDATA[<h3>John Johnston edited <a href="http://supercardshellessentials.pbwiki.com/Miscellanous">Miscellanous</a></h3>
<div class="diffnone">** [Point list to coordinate list] ** ''perl substitutions using regular expressions''</div><br />
<div class="diffnone">** [Image to html] ** ''uses Scriptable Image Processing System''</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">**[php via shell]** "use php via shell"</div><br />
]]></description>
  <pubDate>Sun, 29 Oct 2006 07:25:15 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>php via shell</title>
  <link>http://supercardshellessentials.pbwiki.com/php+via+shell</link>
  <author>email.hidden@example.com (John Johnston)</author>
  <description><![CDATA[<h3>John Johnston edited <a href="http://supercardshellessentials.pbwiki.com/php+via+shell">php via shell</a></h3>
<div style="font-weight:bold;color:green;background-color:#cfc;">!php via shell</div><br />
<div class="diffnone">You can use php via shell</div><br />
<div class="diffnone">for example, this script creates an md5 hash of a string:</div><br />
]]></description>
  <pubDate>Sun, 29 Oct 2006 07:23:52 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>php via shell</title>
  <link>http://supercardshellessentials.pbwiki.com/php+via+shell</link>
  <author>email.hidden@example.com (John Johnston)</author>
  <description><![CDATA[<h3>John Johnston added <a href="http://supercardshellessentials.pbwiki.com/php+via+shell">php via shell</a></h3>
You can use php via shell<br />
<br />
for example, this script creates an md5 hash of a string:<br />
<br />
 <verbatim><br />
function md5 thestring<br />
  return shell(merge(\"php -r `echo md5(\'[[thestring]]\');`\"))<br />
end md5<br />
</verbatim><br />
so put md5 (\"mypassword\") will return 34819d7beeabb9260a5c854bc85b3e44<br />
]]></description>
  <pubDate>Sun, 29 Oct 2006 07:23:11 +0000</pubDate>
  <category>add</category>
 </item>
 <item>
  <title>FrontPage</title>
  <link>http://supercardshellessentials.pbwiki.com/FrontPage</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/FrontPage">FrontPage</a></h3>
<div class="diffnone">&lt;/verbatim&gt;</div><br />
<div class="diffnone">''A [linefeed] is usually appended to text output, which in-turn is converted automatically to a carriage return by the &lt;raw&gt;SuperCard&lt;/raw&gt; shell function (unless the extended function syntax is used)</div><br />
The [Perl] function 'chomp' deletes <span style="color:red;background-color:#fcc;">trailing </span>linefeeds from output.''<br />
<div class="diffnone">---</div><br />
<div class="diffnone">!!Recent Additions</div><br />
<div class="diffnone">!!![Directory & File Lists]</div><br />
]]></description>
  <pubDate>Fri, 14 Jul 2006 01:26:59 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Directory</title>
  <link>http://supercardshellessentials.pbwiki.com/Directory</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Directory">Directory</a></h3>
<div class="diffnone">&lt;/verbatim&gt;</div><br />
<div class="diffnone">!!! cumulativeFolderSizeTree2</div><br />
<span style="font-weight:bold;color:green;background-color:#cfc;"></span>A <span style="font-weight:bold;color:green;background-color:#cfc;">s</span>li<span style="color:red;background-color:#fcc;">t</span><span style="font-weight:bold;color:green;background-color:#cfc;">gh</span>tl<span style="color:red;background-color:#fcc;">e</span><span style="font-weight:bold;color:green;background-color:#cfc;">y</span> faster <span style="color:red;background-color:#fcc;">and returns relative pa</span><span style="font-weight:bold;color:green;background-color:#cfc;">wi</span>th<span style="font-weight:bold;color:green;background-color:#cfc;"> large directories, slightly slower with small directorie</span>s.<br />
<div style="font-weight:bold;color:green;background-color:#cfc;">Relative paths relative to root.</div><br />
<div class="diffnone">Each line a tab delimited list; folder path, local content size, cumulative content size.</div><br />
<div class="diffnone">Sizes are in KB. See the '-s' entry of 'man ls' for details.</div><br />
<div class="diffnone">''**Note:** The accumulator method skips folder paths which contain single/double quotes or unescaped grep metachars. Such skips causes the quick method of merging local & cumulative sizes ('paste') to return unreliable data. Check field count of last line to con</div>]]></description>
  <pubDate>Wed, 31 May 2006 05:37:12 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Directory</title>
  <link>http://supercardshellessentials.pbwiki.com/Directory</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Directory">Directory</a></h3>
<div class="diffnone">  put shell(merge(cmd)) into projDir</div><br />
<div class="diffnone">  --begin</div><br />
<div class="diffnone">  </div><br />
  put " ; ls -Rs<span style="color:red;background-color:#fcc;">1</span> `[[rootDir]]` " after cmd<br />
<div class="diffnone">  --ls long, recursive, 512byte block counts</div><br />
<div class="diffnone">  --'ls -s' flag only way to include res fork size</div><br />
<div class="diffnone">  </div><br />
]]></description>
  <pubDate>Wed, 31 May 2006 05:07:33 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Directory</title>
  <link>http://supercardshellessentials.pbwiki.com/Directory</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Directory">Directory</a></h3>
<div class="diffnone">!Directory & File Lists</div><br />
<div class="diffnone">&lt;toc!!!&gt;</div><br />
<div class="diffnone">!!Directory Lists</div><br />
!!! cumulativeFolderSizeTree<span style="color:red;background-color:#fcc;">()</span><br />
<div class="diffnone">Returns folder tree list.</div><br />
<div class="diffnone">Each line a tab delimited list; folder path, local content size, cumulative content size.</div><br />
<div class="diffnone">Sizes are in KB. See the '-s' entry of 'man ls' for details.</div><br />
<div class="diffnone">  end if</div><br />
<div class="diffnone">  --do something with dirTree</div><br />
<div class="diffnone">end mouseup</div><br />
<div class="diffnone">function cumulativeFolderSizeTree rootDir</div><br />
<div class="diffnone">  if char 1 of rootDir ≠ "/" then</div><br />
<div class="diffnone">    put "osascript -e 'posix path of alias `[[rootDir]]`' | perl -pe chomp | perl -pe chop" into cmd</div><br />
<div class="diffnone">  put "cd `[[bq]]osascript -e 'posix path of alias `[[it]]`' | perl -pe chomp[[bq]]`" into cmd</div><br />
<div class="diffnone">  --set working dir</div>]]></description>
  <pubDate>Wed, 31 May 2006 05:04:59 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Directory</title>
  <link>http://supercardshellessentials.pbwiki.com/Directory</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Directory">Directory</a></h3>
<div class="diffnone">  return shell(cmd)</div><br />
<div class="diffnone">end cumulativeFolderSizeTree</div><br />
<div class="diffnone">&lt;/verbatim&gt;</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">!!! cumulativeFolderSizeTree2()</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">A little faster and returns relative paths.</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">Each line a tab delimited list; folder path, local content size, cumulative content size.</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">Sizes are in KB. See the '-s' entry of 'man ls' for details.</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">''**Note:** The accumulator method skips folder paths which contain single/double quotes or unescaped grep metachars. Such skips causes the quick method of merging local & cumulative sizes ('paste') to return unreliable data. Check field count of last line to confirm absence of skips.''</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;"> &lt;verbatim&gt;</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">on mouseup</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">  answer folder "select a folder"</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">  if it = "" then return ""</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">  p</div>]]></description>
  <pubDate>Wed, 31 May 2006 04:53:18 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Directory</title>
  <link>http://supercardshellessentials.pbwiki.com/Directory</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Directory">Directory</a></h3>
<div class="diffnone">!Directory & File Lists</div><br />
<div class="diffnone">&lt;toc!!!&gt;</div><br />
<div class="diffnone">!!Directory Lists</div><br />
!!!<span style="color:red;background-color:#fcc;">C</span><span style="font-weight:bold;color:green;background-color:#cfc;"> c</span>umulative<span style="color:red;background-color:#fcc;"> f</span><span style="font-weight:bold;color:green;background-color:#cfc;">F</span>older<span style="color:red;background-color:#fcc;"> s</span><span style="font-weight:bold;color:green;background-color:#cfc;">S</span>ize<span style="color:red;background-color:#fcc;">s</span><span style="font-weight:bold;color:green;background-color:#cfc;">Tree()</span><br />
<div class="diffnone">Returns folder tree list.</div><br />
<div class="diffnone">Each line a tab delimited list; folder path, local content size, cumulative content size.</div><br />
<div class="diffnone">Sizes are in KB. See the '-s' entry of 'man ls' for details.</div><br />
<div class="diffnone">  --begin part 2</div><br />
<div class="diffnone">  put " | awk -F\t '{print $1}' "  after cmd</div><br />
<div class="diffnone">  --strip lines of size field</div><br />
  put " | perl -pe 's/([\(\)\<span style="color:red;background-color:#fcc;">.\</span>$\?\*\+])/\\\$1/g' " after cmd<br />
<div class="diffnone">  --escape path chars that are grep regex metachars... ( ) . $ ?</div>]]></description>
  <pubDate>Wed, 31 May 2006 04:47:21 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Perl</title>
  <link>http://supercardshellessentials.pbwiki.com/Perl</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Perl">Perl</a></h3>
<div class="diffnone">!Perl</div><br />
<div class="diffnone">''Practical Extraction and Report Language''</div><br />
<div class="diffnone">&lt;toc!!!&gt;</div><br />
<span style="color:red;background-color:#fcc;">!!Essential Perl syntax</span><br />
<span style="font-weight:bold;color:green;background-color:#cfc;">!!!Switches</span><br />
<span style="color:red;background-color:#fcc;">...to come</span><span style="font-weight:bold;color:green;background-color:#cfc;">!!!Perl substitution</span><br />
<span style="color:red;background-color:#fcc;">...to come</span><br />
<span style="font-weight:bold;color:green;background-color:#cfc;">!!!Perl regular expressions</span><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">!Essential Perl syntax</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">!!Switches</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">...to come</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">!!Perl substitution</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">**Like ~SuperCard's replace function, Perl substitutions replace matching text.**</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">!!!Basic syntax</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">|&lt;raw&gt;'s/&lt;match&gt;/&lt;replace&gt;/'&lt;/raw&gt;|Elements are typically delimited by slashes|</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">|&lt;raw&gt;'s|&lt;match&gt;|&lt;replace&gt;|'&lt;/raw&gt;|But may be delimited by any appropriate character|</div><br />
<]]></description>
  <pubDate>Tue, 30 May 2006 02:38:57 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Point list to coordinate list</title>
  <link>http://supercardshellessentials.pbwiki.com/Point+list+to+coordinate+list</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Point+list+to+coordinate+list">Point list to coordinate list</a></h3>
<div class="diffnone">A more strict version...</div><br />
<div class="diffnone">Expects numeric values, negative and/or floating point</div><br />
The Perl regular expression, (\-?\d*\.?\d*), specifies an optional leading negative sign followed by <span style="color:red;background-color:#fcc;"> 0</span><span style="font-weight:bold;color:green;background-color:#cfc;">zero</span> or more digits, an optional decimal point, and lastly another <span style="color:red;background-color:#fcc;">0</span><span style="font-weight:bold;color:green;background-color:#cfc;">zero</span> or more digits.<br />
<div class="diffnone">The replacement side, is identical to the example above.</div><br />
<div class="diffnone"> &lt;verbatim&gt;</div><br />
]]></description>
  <pubDate>Tue, 30 May 2006 01:50:44 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Perl</title>
  <link>http://supercardshellessentials.pbwiki.com/Perl</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Perl">Perl</a></h3>
<div class="diffnone">!!!Perl substitution</div><br />
<div class="diffnone">...to come</div><br />
<div class="diffnone">!!!Perl regular expressions</div><br />
<span style="color:red;background-color:#fcc;">...to come</span><br />
<br />
<div style="font-weight:bold;color:green;background-color:#cfc;">Examples</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">[Point list to coordinate list]</div><br />
<div class="diffnone">---</div><br />
<div class="diffnone">&lt;top&gt;</div><br />
]]></description>
  <pubDate>Tue, 30 May 2006 01:47:19 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Directory</title>
  <link>http://supercardshellessentials.pbwiki.com/Directory</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Directory">Directory</a></h3>
<div class="diffnone">!Directory & File Lists</div><br />
<div class="diffnone">&lt;toc!!!&gt;</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">!!Directory Lists</div><br />
<div class="diffnone">!!!Cumulative folder sizes</div><br />
<div class="diffnone">Returns folder tree list.</div><br />
<div class="diffnone">Each line a tab delimited list; folder path, local content size, cumulative content size.</div><br />
]]></description>
  <pubDate>Tue, 30 May 2006 01:42:46 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>FrontPage</title>
  <link>http://supercardshellessentials.pbwiki.com/FrontPage</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/FrontPage">FrontPage</a></h3>
<div class="diffnone">!~SuperCard Shell Essentials</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">&lt;toc!!!&gt;</div><br />
<div class="diffnone">!!Extending SuperCard with OS X Shell Commands</div><br />
<div class="diffnone">SideBar </div><br />
<span style="color:red;background-color:#fcc;">&lt;toc!!!&gt;</span><br />
<span style="font-weight:bold;color:green;background-color:#cfc;">!!!Essential ~SuperCard functions</span><br />
<div class="diffnone">!!!Essential ~SuperCard functions</div><br />
<div class="diffnone">**[SuperCard  Shell function] ** </div><br />
<div class="diffnone">''Execute shell commands''</div><br />
<div class="diffnone">''A [linefeed] is usually appended to text output, which in-turn is converted automatically to a carriage return by the &lt;raw&gt;SuperCard&lt;/raw&gt; shell function (unless the extended function syntax is used)</div><br />
<div class="diffnone">The [Perl] function 'chomp' deletes trailing linefeeds from output.''</div><br />
<div class="diffnone">---</div><br />
<span style="color:red;background-color:#fcc;">R</span><span style="font-weight:bold;color:green;background-color:#cfc;">[Dir</span>ec<span style="color:red;background-color:#fcc;">ent Additions!!!</span><span style="font-weight:bold;color:green;background-color:#cfc;">tory & File Lists]</spa</span>]]></description>
  <pubDate>Tue, 30 May 2006 01:41:53 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>FrontPage</title>
  <link>http://supercardshellessentials.pbwiki.com/FrontPage</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/FrontPage">FrontPage</a></h3>
<div class="diffnone">!~SuperCard Shell Essentials</div><br />
<div class="diffnone">!!Extending SuperCard with OS X Shell Commands</div><br />
<div class="diffnone">SideBar </div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">&lt;toc!!!&gt;</div><br />
<div class="diffnone">!!!Essential ~SuperCard functions</div><br />
<div class="diffnone">**[SuperCard  Shell function] ** </div><br />
<div class="diffnone">''Execute shell commands''</div><br />
<div class="diffnone">''A [linefeed] is usually appended to text output, which in-turn is converted automatically to a carriage return by the &lt;raw&gt;SuperCard&lt;/raw&gt; shell function (unless the extended function syntax is used)</div><br />
<div class="diffnone">The [Perl] function 'chomp' deletes trailing linefeeds from output.''</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">---</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">Recent Additions!!!</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">[Directory & File Lists]</div><br />
<div class="diffnone">---</div><br />
<div class="diffnone">!!Reference</div><br />
<div class="diffnone">&lt;a href="http://insideapple.apple.com/redir/462512/462_116/89de9bc5</div>]]></description>
  <pubDate>Tue, 30 May 2006 01:39:51 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Directory</title>
  <link>http://supercardshellessentials.pbwiki.com/Directory</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Directory">Directory</a></h3>
<div class="diffnone">&lt;toc!!!&gt;</div><br />
<div class="diffnone">!!!Cumulative folder sizes</div><br />
<div class="diffnone">Returns folder tree list.</div><br />
Each line a tab delimited list; folder path, local content <span style="color:red;background-color:#fcc;">KB</span><span style="font-weight:bold;color:green;background-color:#cfc;">size</span>, cumulative content <span style="color:red;background-color:#fcc;">KB</span><span style="font-weight:bold;color:green;background-color:#cfc;">size.</span><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">Sizes are in KB. See the '-s' entry of 'man ls' for details.</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">''**Note:** The accumulator method skips folder paths which contain single/double quotes or unescaped grep metachars. Such skips causes the quick method of merging local & cumulative sizes ('paste') to return unreliable data. Check field count of last line to confirm absence of skips.''</div><br />
<div class="diffnone"> &lt;verbatim&gt;</div><br />
<div class="diffnone">on mouseup</div><br />
]]></description>
  <pubDate>Tue, 30 May 2006 01:00:37 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Directory</title>
  <link>http://supercardshellessentials.pbwiki.com/Directory</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS edited <a href="http://supercardshellessentials.pbwiki.com/Directory">Directory</a></h3>
<div class="diffnone">!Directory & File Lists</div><br />
<div style="font-weight:bold;color:green;background-color:#cfc;">&lt;toc!!!&gt;</div><br />
<div class="diffnone">!!!Cumulative folder sizes</div><br />
<div class="diffnone">Returns folder tree list.</div><br />
<div class="diffnone">Each line a tab delimited list; folder path, local content KB, cumulative content KB</div><br />
]]></description>
  <pubDate>Tue, 30 May 2006 00:48:45 +0000</pubDate>
  <category>mod</category>
 </item>
 <item>
  <title>Directory</title>
  <link>http://supercardshellessentials.pbwiki.com/Directory</link>
  <author>email.hidden@example.com (DCS)</author>
  <description><![CDATA[<h3>DCS added <a href="http://supercardshellessentials.pbwiki.com/Directory">Directory</a></h3>
!Directory & File Lists<br />
<br />
!!!Cumulative folder sizes<br />
Returns folder tree list.<br />
Each line a tab delimited list; folder path, local content KB, cumulative content KB<br />
<br />
 <verbatim><br />
on mouseup<br />
  answer folder \"select a folder\"<br />
  if it = \"\" then return \"\"<br />
  put cumulativeFolderSizeTree(it) into dirTree<br />
  set the itemDel to tab<br />
  put the number of items in last line of dirTree into chk<br />
  set the itemDel to \",\"<br />
  if chk ≠ 3 then<br />
    alert sheet \"Sync error!\" explain \"A path contains single/double quotes or unescaped metachar.\"<br />
  end if<br />
  --do something with dirTree<br />
end mouseup<br />
<br />
function cumulativeFolderSizeTree rootDir<br />
  if char 1 of rootDir ≠ \"/\" then<br />
    put \"osascript -e \'posix path of alias `[[rootDir]]`\' | perl -pe chomp | perl -pe chop\" into cmd<br />
    put shell(merge(cmd)) into rootDir<br />
  end if<br />
  --convert rootDir to unix path if necessary<br />
  <br />
  put \"`\" into bq<br />
  --bq  = command expansion metacharacter<br />
  get projectpath(this proj)<br />
  <br />
  --begin<br />
  put \"cd `[[bq</verbatim>]]></description>
  <pubDate>Tue, 30 May 2006 00:48:20 +0000</pubDate>
  <category>add</category>
 </item>
</channel>
</rss>
