<?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>Packetslave Industries &#187; Projects</title>
	<atom:link href="http://www.packetslave.com/category/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.packetslave.com</link>
	<description>This is my blog.  There are many like it, but this one is mine.</description>
	<lastBuildDate>Fri, 03 Sep 2010 03:39:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Applescript to Sync SmartGroups with iPhone</title>
		<link>http://www.packetslave.com/2008/08/29/applescript-to-sync-smartgroups-with-iphone/</link>
		<comments>http://www.packetslave.com/2008/08/29/applescript-to-sync-smartgroups-with-iphone/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 16:37:41 +0000</pubDate>
		<dc:creator>blanders</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[addressbook]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://www.packetslave.com/?p=98</guid>
		<description><![CDATA[Since the iPhone does not sync SmartGroups from the MacOS Address Book (only regular groups), I wrote this script to automatically create ordinary groups with the contents of my SmartGroups.  I name all of my SmartGroups starting with &#8220;SM_&#8221; and the script creates regular groups with the same name, but starting with &#8220;_&#8221; (so SM_Family [...]]]></description>
			<content:encoded><![CDATA[<p>Since the iPhone does not sync SmartGroups from the MacOS Address Book (only regular groups), I wrote this script to automatically create ordinary groups with the contents of my SmartGroups.  I name all of my SmartGroups starting with &#8220;SM_&#8221; and the script creates regular groups with the same name, but starting with &#8220;_&#8221; (so SM_Family would become _Family).</p>
<p>Note that this script will <span style="text-decoration: underline;">delete</span> all contacts from any regular groups that begin with &#8220;_&#8221; and match the name of a SmartGroup, so be a bit careful before you run it the first time.</p>
<pre>on replaceString(theText, oldString, newString)
    set AppleScript's text item delimiters to oldString
    set tempList to every text item of theText
    set AppleScript's text item delimiters to newString
    set theText to the tempList as string
    set AppleScript's text item delimiters to ""
    return theText
end replaceString

tell application "Address Book"
    set theGroups to every group
end tell

repeat with aGroup in theGroups
    if id of aGroup contains "ABSmartGroup" then
        set theName to "_" &amp; replaceString((name of aGroup), "SM_", "")

        tell application "Address Book"
            if group theName exists then
                remove every person from group theName
            else
                make new group with properties {name:theName}
            end if
            add (every person in aGroup) to group theName
        end tell
    end if
end repeat

tell application "Address Book" to save addressbook</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.packetslave.com/2008/08/29/applescript-to-sync-smartgroups-with-iphone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Republished my ADExport Script</title>
		<link>http://www.packetslave.com/2007/04/24/republished-my-adexport-script/</link>
		<comments>http://www.packetslave.com/2007/04/24/republished-my-adexport-script/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 14:50:28 +0000</pubDate>
		<dc:creator>blanders</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.packetslave.com/?p=8</guid>
		<description><![CDATA[Realized that at some point my script for exporting all email addresses from Microsoft Exchange got moved out of the document root. It&#8217;s back, and you can find it here. I haven&#8217;t tested it in a while (since we moved from Sendmail/SpamAssassin to IronPort at work), but it worked well enough when we were using [...]]]></description>
			<content:encoded><![CDATA[<p>Realized that at some point my script for exporting all email addresses from Microsoft Exchange got moved out of the document root.  It&#8217;s back, and you can find it <a href="http://www.packetslave.com/code/adexport.txt">here</a>.  I haven&#8217;t tested it in a while (since we moved from Sendmail/SpamAssassin to IronPort at work), but it worked well enough when we were using it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.packetslave.com/2007/04/24/republished-my-adexport-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
