<?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>infotexture &#187; OSX</title>
	<atom:link href="http://infotexture.net/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://infotexture.net</link>
	<description>Information Architecture &#38; Content Strategy</description>
	<lastBuildDate>Sat, 03 Sep 2011 14:59:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Snow Leopard Services: Set ZIP File Date</title>
		<link>http://infotexture.net/2009/11/snow-leopard-services-set-zip-file-date/</link>
		<comments>http://infotexture.net/2009/11/snow-leopard-services-set-zip-file-date/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 20:05:15 +0000</pubDate>
		<dc:creator>roger</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Automator]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://blog.infotexture.net/?p=305</guid>
		<description><![CDATA[One of the more popular posts on this site is an entry from October of 2007 on creating a ZIP archive and setting the modification date via an Automator workflow. As I wrote then: “&#8230;when you’re archiving older data, it’s much more useful for the ZIP file date to reflect the date of its contents, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.infotexture.net/wp-content/uploads/2009/11/advanced-preferences-icon.png" alt="advanced-preferences-icon.png" border="0" width="32" height="32" align="right" />One of the more popular posts on this site is an entry from October of 2007 on <a href="http://blog.infotexture.net/2007/10/18/automator-workflow-set-zip-file-date/">creating a ZIP archive and setting the modification date</a> via an <a href="http://www.macosxautomation.com/automator/">Automator</a> workflow. </p>

<p>As I wrote then:</p>

<blockquote>
  <p>“&#8230;when you’re archiving older data, it’s much more useful for the ZIP file date to reflect the date of its contents, since a few years from now you probably won’t care when you compressed the stuff, but rather how old the files inside are.”</p>
</blockquote>

<p>With Mac OS 10.6 <em>Snow Leopard,</em> this same workflow can be set up to run as a service, accessible from the context menu in any Finder window. The process is essentially the same as described in the <a href="http://blog.infotexture.net/2007/10/18/automator-workflow-set-zip-file-date/">original post</a>, with the following adjustments:</p>

<p>To create the workflow,</p>

<ol>
<li>Open <code>/Applications/Automator.app</code>, select the <strong>Service</strong> template and click <strong>Choose</strong>.</li>
<li>At the top of the workflow area on the right side of the window, change the first list option to <strong>files or folders</strong>.</li>
<li>From the <strong>Finder</strong> library, drag the <strong>Create Archive</strong> action to the workflow area. In the action settings, specify the default name and location for the archive file. <em>(I prefer the same name &amp; folder as the input, but you can set the <strong>Options</strong> to prompt for this information when the workflow runs.)</em></li>
<li>From the <strong>Automator</strong> library, add the <strong>Run Shell Script</strong> action.
Leave the <strong>Shell</strong> set to <code>/bin/bash</code>, set <strong>Pass input</strong> to <code>as arguments</code>, and replace the default script in the text box with <code>zip -o "$@"</code>.</li>
</ol>

<p>Save the workflow as a service, and you can run it on files &amp; folders in the Finder by Control-clicking and choosing your new command from the <strong>Services</strong> submenu in the shortcut menu.</p>

<p class="note"><strong>Note:</strong> To create a service that will set the date for existing ZIP files, skip Step 3 above.</p>
]]></content:encoded>
			<wfw:commentRss>http://infotexture.net/2009/11/snow-leopard-services-set-zip-file-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Mac VPN Clients with Virtual Machines</title>
		<link>http://infotexture.net/2008/03/using-mac-vpn-clients-with-virtual-machines/</link>
		<comments>http://infotexture.net/2008/03/using-mac-vpn-clients-with-virtual-machines/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 15:16:27 +0000</pubDate>
		<dc:creator>roger</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://blog.infotexture.net/index.php/2008/03/11/using-mac-vpn-clients-with-virtual-machines/</guid>
		<description><![CDATA[If you use Parallels or VMware Fusion and a Mac VPN client such as VPN Tracker, you can share your VPN connection between the host Mac and the guest PC by setting the network adaptor to share the host&#8217;s Internet connection via NAT. This connection method also has other advantages, as the VMware Fusion Release [...]]]></description>
			<content:encoded><![CDATA[<p>If you use Parallels or VMware Fusion and a Mac VPN client such as <a href="http://www.equinux.com/us/products/vpntracker/">VPN Tracker</a>, you can share your VPN connection between the host Mac and the guest PC by setting the network adaptor to share the host&#8217;s Internet connection via <a href="http://en.wikipedia.org/wiki/Network_address_translation">NAT</a>.</p>

<p>This connection method also has other advantages, as the VMware Fusion <a href="http://www.vmware.com/support/fusion/doc/releasenotes_fusion.html">Release Notes</a> explain:</p>

<blockquote>
  <p>&#8220;VMware Fusion&#8217;s default network connection type for new virtual machines is NAT, which will prevent the spread of viruses over the network into the virtual machine, and will only expose the virtual machine to external viruses through browser security flaws when you browse the Internet.&#8221;</p>
</blockquote>

<p>The idea of sharing VPN connections with Windows applications via Parallels is touted as a VPN Tracker <a href="http://www.equinux.com/us/products/vpntracker/virtualmachines.html">feature</a> and explained in detail in a <a href="http://download.equinux.com/VPN_Tracker_HowTo_Parallels_1.0.pdf">how-to PDF</a>, but it works equally well with VMware Fusion.</p>

<p>The key is setting the network adaptor to shared networking (NAT) as opposed to the bridged or host-only options shown in the VMware settings screenshot below.</p>

<div style="text-align:center;"><img src="http://blog.infotexture.net/wp-content/uploads/2008/03/vmware-nat3.png" alt="screenshot" border="0" width="476" height="152" /></div>

<p>With this approach, network traffic from your virtual machine is routed through the existing VPN connection on the host Mac, so there&#8217;s no need to install a separate VPN client application on the guest PC.</p>
]]></content:encoded>
			<wfw:commentRss>http://infotexture.net/2008/03/using-mac-vpn-clients-with-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharing DITA-OT in OS X &amp; Boot Camp</title>
		<link>http://infotexture.net/2008/01/sharing-dita-ot-osx-bootcamp/</link>
		<comments>http://infotexture.net/2008/01/sharing-dita-ot-osx-bootcamp/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 17:15:22 +0000</pubDate>
		<dc:creator>roger</dc:creator>
				<category><![CDATA[DITA]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.infotexture.net/index.php/2008/01/14/sharing-dita-ot-osx-bootcamp/</guid>
		<description><![CDATA[How to use a single installation of the DITA Open Toolkit on your Windows partition to generate output from either operating system environment.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using the <a href="http://sourceforge.net/projects/dita-ot/">DITA Open Toolkit</a> on Mac OS X, you can&#8217;t generate compiled HTML Help (CHM) files directly, since Microsoft only offers the <a href="http://msdn.microsoft.com/library/en-us/htmlhelp/html/hwmicrosofthtmlhelpdownloads.asp?frame=true">HTML Help Workshop</a> for Windows.</p>

<p>But if you also run Windows on your Mac via <a href="http://www.apple.com/macosx/bootcamp/">Boot Camp</a>, you can set up a single installation of the Open Toolkit on your Windows partition and use it to generate output from either operating system environment.</p>

<p>Essentially, you boot into Windows (via VMware, Parallels, or directly) and set up the toolkit there <a href="http://www.ditainfocenter.com/eclipsehelp/topic/ditaotug_top/installing/installing_full_package.html">as usual</a>.</p>

<p>Once you have the toolkit running under Windows, create a copy of the Ant build file for your project, adjust the paths for access from Mac OS X and save it under a new name in the DITA-OT directory on your Windows partition. <em>(You&#8217;ll call this file later from the Terminal to build your project output on the Mac.)</em></p>

<p>Back on Mac OS, set up the environment variables required by the toolkit.</p>

<p>You can do this by editing the <code>.bash_profile</code> file in your home directory, or if you don&#8217;t like editing hidden UNIX files by hand, you can use freeware such as <a href="http://www.rubicode.com/Software/RCEnvironment/">RCEnvironment</a> or <a href="http://www.sshkeychain.org/">SSHKeychain</a>, which provide a simple dialog that allows you to define environment variables like in Windows.</p>

<p><em>(In the background, both tools simply write to the     <code>~/.MacOSX/environment.plist</code> file. SSHKeychain also serves as a nice Mac equivalent to <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a>, but that&#8217;s another story&#8230;)</em>  </p>

<p>The key here is to use the absolute path to the toolkit installation on the Boot Camp partition. For example, if your Windows partition is named <code>BOOTCAMP</code> and the toolkit lives there at <code>C:\DITA-OT1.4.1</code>, you might set the <code>DITA_HOME</code> variable like this:</p>

<pre><code>DITA_HOME=/Volumes/BOOTCAMP/DITA-OT1.4.1  
</code></pre>

<p>You can then define the other variables relative to the toolkit directory with entries like this:</p>

<pre><code>ANT_HOME=$DITA_DIR/tools/ant
</code></pre>

<p><strong>Note:</strong> If you use either of the aforementioned tools to edit <code>~/.MacOSX/environment.plist</code>, you&#8217;ll need to use the full paths for the remaining variables, as <code>$VARIABLE</code> values are not expanded when this file is read.</p>

<p>Once the variables are all set, you&#8217;ll need to log in to OS X again to activate them.</p>

<p>Then with a command like this, you can build output from the Terminal using the Mac version of the build file you edited above:</p>

<pre><code>ant -f your-mac-build-file.xml html 
</code></pre>

<p>To build CHM output, switch to Boot Camp, run <code>startcmd.bat</code> in the DITA-OT directory, and enter something like this on the command line:</p>

<pre><code>ant -f your-windows-build-file.xml chm
</code></pre>

<p>If both your build files are set to share an output folder on your Mac, your files will land in the same place, no matter which operating system you build them on.</p>
]]></content:encoded>
			<wfw:commentRss>http://infotexture.net/2008/01/sharing-dita-ot-osx-bootcamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

