<?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: Batch Search-n-Replace Paths</title>
	<atom:link href="http://aescripts.com/batch-search-n-replace-paths/feed/" rel="self" type="application/rss+xml" />
	<link>http://aescripts.com/batch-search-n-replace-paths/</link>
	<description>The definitive collection of scripts and plugins for Adobe After Effects</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:13:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Lloyd Alvarez</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-127758</link>
		<dc:creator>Lloyd Alvarez</dc:creator>
		<pubDate>Thu, 26 Jan 2012 12:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-127758</guid>
		<description>If there are the same name then you can just move frames 301-500 to a different folder.  After Effects by default uses the entire sequence unless you used something like Immigration to bring in only a region of the sequence.  You can&#039;t do this by hand so most like you did not do this.</description>
		<content:encoded><![CDATA[<p>If there are the same name then you can just move frames 301-500 to a different folder.  After Effects by default uses the entire sequence unless you used something like Immigration to bring in only a region of the sequence.  You can&#8217;t do this by hand so most like you did not do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-127740</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 26 Jan 2012 10:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-127740</guid>
		<description>Hi
Great script but i&#039;im trying to replace footage of psd files (sequence frames 0000-0500) with footage of psd files (sequence frames 0000-0300) 
How to do it?

Greg</description>
		<content:encoded><![CDATA[<p>Hi<br />
Great script but i&#8217;im trying to replace footage of psd files (sequence frames 0000-0500) with footage of psd files (sequence frames 0000-0300)<br />
How to do it?</p>
<p>Greg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-118032</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 07 Dec 2011 11:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-118032</guid>
		<description>This is a great little script.  We&#039;ve been using it to transfer files between PC and Mac and found it very helpful.  We have however come across a couple of issues that we&#039;ve struggled with.  

1. When dealing with PSD Layers the script seems to change the interpretation method so whereas before the using the script we had individual layers from the PSD after processing the file each individual layer now holds the entire PSD.  This is particularly frustrating but I don&#039;t know if we&#039;re doing something wrong when we&#039;re processing the files.

2. the script doesn&#039;t change the render Output path, this would be an incredibly useful option for us.  At the moment we have to change this manually after converting the file.

Still a very useful script though!

Nick</description>
		<content:encoded><![CDATA[<p>This is a great little script.  We&#8217;ve been using it to transfer files between PC and Mac and found it very helpful.  We have however come across a couple of issues that we&#8217;ve struggled with.  </p>
<p>1. When dealing with PSD Layers the script seems to change the interpretation method so whereas before the using the script we had individual layers from the PSD after processing the file each individual layer now holds the entire PSD.  This is particularly frustrating but I don&#8217;t know if we&#8217;re doing something wrong when we&#8217;re processing the files.</p>
<p>2. the script doesn&#8217;t change the render Output path, this would be an incredibly useful option for us.  At the moment we have to change this manually after converting the file.</p>
<p>Still a very useful script though!</p>
<p>Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lloyd Alvarez</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-113177</link>
		<dc:creator>Lloyd Alvarez</dc:creator>
		<pubDate>Tue, 08 Nov 2011 16:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-113177</guid>
		<description>To do a wildcard search you&#039;ll need to use Regex.  If you tell me exactly what your wildcard search is I can write you a regex expression you can use.</description>
		<content:encoded><![CDATA[<p>To do a wildcard search you&#8217;ll need to use Regex.  If you tell me exactly what your wildcard search is I can write you a regex expression you can use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wilhelm</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-113119</link>
		<dc:creator>Wilhelm</dc:creator>
		<pubDate>Tue, 08 Nov 2011 10:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-113119</guid>
		<description>i am trying to replace footage that has another sequence count (i.e. sewuence frame 20-100, replacing with sequence frame 50-200).
how can i do that? 
i was trying to do with an asterix in the search and replace string but i wont work. any ideas?</description>
		<content:encoded><![CDATA[<p>i am trying to replace footage that has another sequence count (i.e. sewuence frame 20-100, replacing with sequence frame 50-200).<br />
how can i do that?<br />
i was trying to do with an asterix in the search and replace string but i wont work. any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lloyd Alvarez</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-96959</link>
		<dc:creator>Lloyd Alvarez</dc:creator>
		<pubDate>Mon, 22 Aug 2011 19:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-96959</guid>
		<description>Great, thanks for sharing that and glad you got it working.</description>
		<content:encoded><![CDATA[<p>Great, thanks for sharing that and glad you got it working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-96956</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 22 Aug 2011 19:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-96956</guid>
		<description>I believe I have gotten it to work. Although stripping the name wasn&#039;t necessary. Using the item(m).file variable gave the wrong path, but using item(m).file.name gave the correct path. So this fix seems to work:

Replace:
var myProjItemPath = unescape(myProj.item(m).file); 

With:
var myProjItemPath = unescape(myProj.item(m).file.name); 

At least on my computer with Mac OSX with CS3...</description>
		<content:encoded><![CDATA[<p>I believe I have gotten it to work. Although stripping the name wasn&#8217;t necessary. Using the item(m).file variable gave the wrong path, but using item(m).file.name gave the correct path. So this fix seems to work:</p>
<p>Replace:<br />
var myProjItemPath = unescape(myProj.item(m).file); </p>
<p>With:<br />
var myProjItemPath = unescape(myProj.item(m).file.name); </p>
<p>At least on my computer with Mac OSX with CS3&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lloyd Alvarez</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-96954</link>
		<dc:creator>Lloyd Alvarez</dc:creator>
		<pubDate>Mon, 22 Aug 2011 19:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-96954</guid>
		<description>That is definitely a bug.  The CS3 scripting api had many bugs that were fixed in CS4.  So are you able to get it working with your workaround?</description>
		<content:encoded><![CDATA[<p>That is definitely a bug.  The CS3 scripting api had many bugs that were fixed in CS4.  So are you able to get it working with your workaround?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-96953</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 22 Aug 2011 19:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-96953</guid>
		<description>I was looking into the replace javascript command along with your script and I think there is something a little more subtle going on.

I ran this code and the replace worked fine even with the source folder missing:
var items = app.project.selection;
var layer = items[0];
replacePath = &quot;/Users/user/Desktop/AFX_Projects/Art2/FullskiesBlueClouded0004_1_M.jpg&quot;;
replaceFile = new File(replacePath);
layer.replace(replaceFile);

However, looking at your code, the search/replace gets run on the item(m).file text. However, this property seems to give something like this:
/Applications/Adobe%20After%20Effects%20CS3/Adobe%20After%20Effects%20CS3.app/Contents/MacOS/GFX-Work-i05:Users:user:Desktop:AFX_Projects:Art2:FullskiesBlueClouded0004_1_M.jpg

I don&#039;t know why the location of After Effects is found in the file variable, however it explains why the search and replace fails, because when anything is replaced, the location is still included, and that is no longer a proper path.

Maybe stripping the executable location from the item(m).file variable before running the search/replace will help?</description>
		<content:encoded><![CDATA[<p>I was looking into the replace javascript command along with your script and I think there is something a little more subtle going on.</p>
<p>I ran this code and the replace worked fine even with the source folder missing:<br />
var items = app.project.selection;<br />
var layer = items[0];<br />
replacePath = &#8220;/Users/user/Desktop/AFX_Projects/Art2/FullskiesBlueClouded0004_1_M.jpg&#8221;;<br />
replaceFile = new File(replacePath);<br />
layer.replace(replaceFile);</p>
<p>However, looking at your code, the search/replace gets run on the item(m).file text. However, this property seems to give something like this:<br />
/Applications/Adobe%20After%20Effects%20CS3/Adobe%20After%20Effects%20CS3.app/Contents/MacOS/GFX-Work-i05:Users:user:Desktop:AFX_Projects:Art2:FullskiesBlueClouded0004_1_M.jpg</p>
<p>I don&#8217;t know why the location of After Effects is found in the file variable, however it explains why the search and replace fails, because when anything is replaced, the location is still included, and that is no longer a proper path.</p>
<p>Maybe stripping the executable location from the item(m).file variable before running the search/replace will help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lloyd Alvarez</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-96940</link>
		<dc:creator>Lloyd Alvarez</dc:creator>
		<pubDate>Mon, 22 Aug 2011 17:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-96940</guid>
		<description>I am afraid you might be out of luck.  CS3 was very limited in it&#039;s flexibility.  To replace paths the script has to do it through the &quot;replace footage&quot; command in AE which fails if the path is not valid.  I would  suggest upgrading. CS4 and above are much more capable especially for this high level kind of stuff.  Also, much faster.</description>
		<content:encoded><![CDATA[<p>I am afraid you might be out of luck.  CS3 was very limited in it&#8217;s flexibility.  To replace paths the script has to do it through the &#8220;replace footage&#8221; command in AE which fails if the path is not valid.  I would  suggest upgrading. CS4 and above are much more capable especially for this high level kind of stuff.  Also, much faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-96939</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 22 Aug 2011 17:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-96939</guid>
		<description>Yeah, that&#039;s what I&#039;m trying. Unfortunately, I&#039;m on CS3 so XML is not an option. The folder that has changed is the server, so we no longer have the old folder name available.  Any other thoughts?</description>
		<content:encoded><![CDATA[<p>Yeah, that&#8217;s what I&#8217;m trying. Unfortunately, I&#8217;m on CS3 so XML is not an option. The folder that has changed is the server, so we no longer have the old folder name available.  Any other thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lloyd Alvarez</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-96932</link>
		<dc:creator>Lloyd Alvarez</dc:creator>
		<pubDate>Mon, 22 Aug 2011 15:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-96932</guid>
		<description>If the folder no longer exists you will only be able to do it using the XML option.  Is that what you are trying?</description>
		<content:encoded><![CDATA[<p>If the folder no longer exists you will only be able to do it using the XML option.  Is that what you are trying?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-96930</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 22 Aug 2011 15:47:46 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-96930</guid>
		<description>I am having trouble replacing footage when the source folder no longer exists. I run the script, but the log shows an error stating &quot;After Effects error: Unable to call </description>
		<content:encoded><![CDATA[<p>I am having trouble replacing footage when the source folder no longer exists. I run the script, but the log shows an error stating &#8220;After Effects error: Unable to call</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keks</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-87450</link>
		<dc:creator>keks</dc:creator>
		<pubDate>Thu, 30 Jun 2011 15:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-87450</guid>
		<description>Ok, thanks!</description>
		<content:encoded><![CDATA[<p>Ok, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lloyd Alvarez</title>
		<link>http://aescripts.com/batch-search-n-replace-paths/comment-page-1/#comment-87443</link>
		<dc:creator>Lloyd Alvarez</dc:creator>
		<pubDate>Thu, 30 Jun 2011 14:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://aescripts.com/?p=1555#comment-87443</guid>
		<description>I don&#039;t understand what you are explaining.  If you cannot import it into AE this script will not help.  What this script does is it updates paths.  For example if you need to move media from one server to another and you need your after effects project to link to the new location.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand what you are explaining.  If you cannot import it into AE this script will not help.  What this script does is it updates paths.  For example if you need to move media from one server to another and you need your after effects project to link to the new location.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

