<?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"
	>
<channel>
	<title>Comments on: A small command-line utility to convert paths and pathurls  for OSX</title>
	<atom:link href="http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/</link>
	<description>Sharing tips, scripts and hacks for your creative workflow.</description>
	<pubDate>Sat, 22 Nov 2008 02:57:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Dale</title>
		<link>http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/#comment-158</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Thu, 20 Jul 2006 18:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/#comment-158</guid>
		<description>Austin...

It's definitely an advantage when you can hard code locations, etc. In fact in my early explorations of the &lt;strong&gt;FCP To AE&lt;/strong&gt; scripts much of the scripts were based on my locations and things I was doing in production at &lt;strong&gt;Primal Screen&lt;/strong&gt;. Now I'm trying to make them more general and usable in different production situations.

Dale</description>
		<content:encoded><![CDATA[<p>Austin&#8230;</p>
<p>It&#8217;s definitely an advantage when you can hard code locations, etc. In fact in my early explorations of the <strong>FCP To AE</strong> scripts much of the scripts were based on my locations and things I was doing in production at <strong>Primal Screen</strong>. Now I&#8217;m trying to make them more general and usable in different production situations.</p>
<p>Dale</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: austin</title>
		<link>http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/#comment-157</link>
		<dc:creator>austin</dc:creator>
		<pubDate>Thu, 20 Jul 2006 17:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/#comment-157</guid>
		<description>Your utility is definitely cleaner and nicer.  

Most of our production machines have the same user (eg ~/gfx) and our projects are all on the server(/Volumes/MyServer/Projects)  so it hasn't been a big issue so far.  

Plus, having the script break when the file is not where the script expects it is an evil way to encourage people to keep their projects in the standard places on the server. :)</description>
		<content:encoded><![CDATA[<p>Your utility is definitely cleaner and nicer.  </p>
<p>Most of our production machines have the same user (eg ~/gfx) and our projects are all on the server(/Volumes/MyServer/Projects)  so it hasn&#8217;t been a big issue so far.  </p>
<p>Plus, having the script break when the file is not where the script expects it is an evil way to encourage people to keep their projects in the standard places on the server. <img src='http://www.creative-workflow-hacks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale</title>
		<link>http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/#comment-156</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Thu, 20 Jul 2006 16:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/#comment-156</guid>
		<description>Hey Austin,

Thanks for the encouraging words...

As far as the Javascript path munging...

&lt;strong&gt;Final Cut XML&lt;/strong&gt; has an element called &lt;strong&gt;&#60;pathurl&#62;&lt;/strong&gt; that contains a macintosh  file  path url, that will usually begin with &lt;strong&gt;file://localhost&lt;/strong&gt;, so the first order of business is to strip that away. Then depending on which user is logged in, we need to look for &lt;strong&gt;/Users/Dale&lt;/strong&gt; or some such, if there is &lt;strong&gt;Users/SomeOtherUser&lt;/strong&gt; we have to do some &lt;strong&gt;indexOf&lt;/strong&gt; switching and we are still just guessing as to who is the local user. If not, we pass in &lt;strong&gt;/Volumes/Path/To/File&lt;/strong&gt;. As you can see, it's rather messy. With this it's

var afterEffectsPath = system.callSystem('pathconvert -u file://localhost/Volumes/Storage/Users/Dale/Test/myFile.mov');

returns

~/Test/myFile.mov

I like this one better. I'll follow up with more info later.

Best, 
Dale</description>
		<content:encoded><![CDATA[<p>Hey Austin,</p>
<p>Thanks for the encouraging words&#8230;</p>
<p>As far as the Javascript path munging&#8230;</p>
<p><strong>Final Cut XML</strong> has an element called <strong>&lt;pathurl&gt;</strong> that contains a macintosh  file  path url, that will usually begin with <strong>file://localhost</strong>, so the first order of business is to strip that away. Then depending on which user is logged in, we need to look for <strong>/Users/Dale</strong> or some such, if there is <strong>Users/SomeOtherUser</strong> we have to do some <strong>indexOf</strong> switching and we are still just guessing as to who is the local user. If not, we pass in <strong>/Volumes/Path/To/File</strong>. As you can see, it&#8217;s rather messy. With this it&#8217;s</p>
<p>var afterEffectsPath = system.callSystem(&#8217;pathconvert -u file://localhost/Volumes/Storage/Users/Dale/Test/myFile.mov&#8217;);</p>
<p>returns</p>
<p>~/Test/myFile.mov</p>
<p>I like this one better. I&#8217;ll follow up with more info later.</p>
<p>Best,<br />
Dale</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: austin</title>
		<link>http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/#comment-155</link>
		<dc:creator>austin</dc:creator>
		<pubDate>Thu, 20 Jul 2006 16:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.creative-workflow-hacks.com/2006/07/20/a-small-command-line-utility-for-osx-to-convert-paths-and-pathurls/#comment-155</guid>
		<description>I've been hard coding my paths at the top of the scripts.  I haven't done a lot of back and forth with FCP - what are the contingencies you were seeing?  I'm curious why a text replace of the tilde in Js wouldn't work...

(PS - great site!)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been hard coding my paths at the top of the scripts.  I haven&#8217;t done a lot of back and forth with FCP - what are the contingencies you were seeing?  I&#8217;m curious why a text replace of the tilde in Js wouldn&#8217;t work&#8230;</p>
<p>(PS - great site!)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
