<?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>you down with FCP? &#187; applescript</title>
	<atom:link href="http://blog.youdownwithfcp.com/category/applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.youdownwithfcp.com</link>
	<description>...yeah you know me! - A Final Cut Pro editors blog</description>
	<lastBuildDate>Sat, 05 Nov 2011 02:11:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Batch process file names with applescript</title>
		<link>http://blog.youdownwithfcp.com/2011/08/15/batch-process-file-names-with-applescript/</link>
		<comments>http://blog.youdownwithfcp.com/2011/08/15/batch-process-file-names-with-applescript/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 02:15:33 +0000</pubDate>
		<dc:creator>ross</dc:creator>
				<category><![CDATA[applescript]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[nuke]]></category>

		<guid isPermaLink="false">http://blog.youdownwithfcp.com/?p=1309</guid>
		<description><![CDATA[Just now I found myself with an angry Nuke install that wouldn&#8217;t recognize quicktimes unless they ended with &#8220;.mov&#8221; I have a few hundred linked files at this point, and thankfully most of them weren&#8217;t in nuke yet. What did I do? Well I mentioned finder &#8220;scripting menu additions&#8221; before, but this time I opened [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Screen-shot-2011-08-15-at-7.43.jpg"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Screen-shot-2011-08-15-at-7.43.jpg" alt="" title="scripting menu" width="570" height="350" class="alignnone size-full wp-image-1320" /></a>Just now I found myself with an angry Nuke install that wouldn&#8217;t recognize quicktimes unless they ended with &#8220;.mov&#8221; I have a few hundred linked files at this point, and thankfully most of them weren&#8217;t in nuke yet. What did I do? Well I <a href="http://blog.youdownwithfcp.com/2010/12/02/get-faster-in-the-finder-reveal-the-script-menu/">mentioned finder &#8220;scripting menu additions&#8221; before</a>, but this time I opened one up and tweaked it just a tiny bit to make it much much faster for the specific job I had to do.<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Screen-shot-2011-08-15-at-8.07.52-PM.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Screen-shot-2011-08-15-at-8.07.52-PM.png" alt="" title="Add to file name" width="440" height="229" class="alignnone size-full wp-image-1311" /></a><br />
The one I modified was &#8220;add to file names&#8221;. As it comes it brings up a popup box when called and asks you to type in your new text to add, and then asks you if you want prefix of suffix. That&#8217;s not really a lot of work, but it is a separate typing step and a mouse clicking step. That slows things down. I modified one line in the script so that it auto populates the text box with &#8220;.mov&#8221; and also has the default button set to suffix. That means I can call it and hit return and I&#8217;m done!<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Screen-shot-2011-08-15-at-8.08.00-PM.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Screen-shot-2011-08-15-at-8.08.00-PM.png" alt="" title="add mov to file name" width="440" height="229" class="alignnone size-full wp-image-1310" /></a></p>
<p><a href="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Screen-shot-2011-08-15-at-7.10.23-PM.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Screen-shot-2011-08-15-at-7.10.23-PM-450x237.png" alt="" title="Screen shot 2011-08-15 at 7.10.23 PM" width="450" height="237" class="alignnone size-medium wp-image-1313" /></a></p>
<p>The code change is stupid simple. I added <em>default answer &#8220;.mov&#8221;</em> and <em>default button 3</em> to the existing popup. Done. If I would have had more time I would have made it work recursively, so that I could do my whole directory structure in one blow, but that would have been more time coding than compositing, so I stopped there.</p>
<p>If you want to grab a copy of <a href="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Add-mov-to-File-Names.zip">&#8220;add mov to filename&#8221;, here it is</a>.</p>
<p>I&#8217;ve also used it a bunch since then and decided to create a &#8220;silent&#8221; version. No dialog box. The only thing it does is to add .mov as an extension. You can download <a href="http://blog.youdownwithfcp.com/wp-content/uploads/2011/08/Add-mov-to-File-Names-Silently.zip">&#8220;add mov to filename silent&#8221; here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.youdownwithfcp.com/2011/08/15/batch-process-file-names-with-applescript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get faster in the finder &#8211; reveal the script menu</title>
		<link>http://blog.youdownwithfcp.com/2010/12/02/get-faster-in-the-finder-reveal-the-script-menu/</link>
		<comments>http://blog.youdownwithfcp.com/2010/12/02/get-faster-in-the-finder-reveal-the-script-menu/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 19:06:45 +0000</pubDate>
		<dc:creator>ross</dc:creator>
				<category><![CDATA[applescript]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[rename]]></category>

		<guid isPermaLink="false">http://blog.youdownwithfcp.com/?p=1244</guid>
		<description><![CDATA[Applescript is a powerful thing. It can do incredible things for those who know how to code, but it can be a bit daunting for those who don&#8217;t. There is one great way to be able to use some sample scripts without writing any code and it is built into the os by default! If [...]]]></description>
			<content:encoded><![CDATA[<p>Applescript is a powerful thing. It can do incredible things for those who know how to code, but it can be a bit daunting for those who don&#8217;t. There is one great way to be able to use some sample scripts without writing any code and it is built into the os by default!</p>
<p>If you go into applications>utilities you will find &#8220;Applescript Editor&#8221; Open it up and go into preferences.<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/12/Screen-shot-2010-12-01-at-10.34.56-AM.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/12/Screen-shot-2010-12-01-at-10.34.56-AM.png" alt="" title="applescript editor script menu option" width="530" height="420" class="alignnone size-full wp-image-1247" /></a></p>
<p>Click on the &#8220;show script menu in menu bar&#8221; radio button and quit the app. Now you should have a little icon in you upper right menu bar that looks like a piece of parchment. That is a shortcut to open a bunch of applescripts. The os has a few installed by default. The most important ones (to me) are in the finder scripts folder. There you can add suffixes or prefixes to filenames, you can find and replace text, change case, or trim from the start or ending. This set of tools really helps when you need to batch change a bunch of .movs to .mp4, or when you want to add a job number or date to a bunch of deliverables.</p>
<p>There are definitely other standalone apps for renaming files out there. <a href="http://www.publicspace.net/ABetterFinderRename/">A better finder rename</a>, <a href="http://www.manytricks.com/namemangler/">name mangler,</a> and automator all come to mind, but they aren&#8217;t as easy to use, or they don&#8217;t come pre-installed. Give it a shot,, you might not need it every day, but no one wants to have to manually do anything that can be automated.</p>
<p>It should also be noted that if you do write any applescripts, you can put them in the scripts folder and have them appear in the pulldown menu. Have fun automating!</p>
<p>UPDATE-I just saw that 10.6 (snow leopard) doesn&#8217;t install all of the scripts that previous versions did. Most importantly it doesn&#8217;t install the finder scripts. <a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/12/leopard-Script-Menu-Scripts1.zip">I&#8217;ve zipped the 10.5 scripts up and you can download them here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.youdownwithfcp.com/2010/12/02/get-faster-in-the-finder-reveal-the-script-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to hijack the Mocha for AE tracker for use in other apps. (like NUKE!)</title>
		<link>http://blog.youdownwithfcp.com/2010/11/12/how-to-hijack-the-mocha-for-ae-tracker-for-use-in-other-apps-like-nuke/</link>
		<comments>http://blog.youdownwithfcp.com/2010/11/12/how-to-hijack-the-mocha-for-ae-tracker-for-use-in-other-apps-like-nuke/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 15:29:59 +0000</pubDate>
		<dc:creator>ross</dc:creator>
				<category><![CDATA[After Effects]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[nuke]]></category>
		<category><![CDATA[mocha]]></category>

		<guid isPermaLink="false">http://blog.youdownwithfcp.com/?p=1188</guid>
		<description><![CDATA[Mocha is awesome. Its inclusion in the CS5 suite is amazing, and I think it has really blown open the world of what entry level vfx artists (and even amateurs) can do. One problem with the AE-only version is that it is AE-only! It prevents (or rather doesn&#8217;t enable) you to use it with other [...]]]></description>
			<content:encoded><![CDATA[<p>Mocha is awesome. Its inclusion in the CS5 suite is amazing, and I think it has really blown open the world of what entry level vfx artists (and even amateurs) can do. One problem with the AE-only version is that it is AE-only! It prevents (or rather doesn&#8217;t enable) you to use it with other apps. It exports its data in a specific format meant for after effects and it does a great job of that.</p>
<p>At work I am working my way through nuke, and it is really a pain to be able to use Mocha with AE but not nuke. The simplest fix would be to buy Mocha for nuke, but the powers that be haven&#8217;t done that yet, so I had to figure out a way. I got to thinking the other day, and tracking data at it&#8217;s simplest is only x,y points, so what is stopping me? It turns out that the only thing is formatting!</p>
<p>I whipped up a quick applescript to strip the x,y data out of the MochAE exported text file and put it into 4 separate txt files for nuke. It&#8217;s really that simple! One thing that you need to do in nuke is to set the y axis to (frame height-curve) because the two apps have a different coordinate system.<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/11/Screen-shot-2010-11-11-at-12.40.04-PM.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/11/Screen-shot-2010-11-11-at-12.40.04-PM.png" alt="" title="mocha expression editor" width="576" height="225" class="alignnone size-full wp-image-1189" /></a><br />
After all of this I have a passable workflow, but I want to stress that <strong>if you have enough dough to be using nuke, buy Mocha</strong>! This app is intentionally a little rough around the edges because I don&#8217;t like the idea of taking away anyone else&#8217;s business. It also isn&#8217;t a replacement for the standalone Mocha; it doesn&#8217;t offer any of the other (quite worthwhile) features. It&#8217;s a fun little hack, and hopefully it helps someone out of a jam somewhere, but if you need this, then you need to buy the full version of mocha!<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/11/Nuke_MochAE_importer-1.0.1.zip">Click here to download the MochAE to Nuke converter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.youdownwithfcp.com/2010/11/12/how-to-hijack-the-mocha-for-ae-tracker-for-use-in-other-apps-like-nuke/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 more applescripts for final cut pro and after effects!</title>
		<link>http://blog.youdownwithfcp.com/2010/11/10/2-more-applescripts-for-final-cut-pro-and-after-effects/</link>
		<comments>http://blog.youdownwithfcp.com/2010/11/10/2-more-applescripts-for-final-cut-pro-and-after-effects/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 22:13:40 +0000</pubDate>
		<dc:creator>ross</dc:creator>
				<category><![CDATA[After Effects]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[compressor]]></category>
		<category><![CDATA[FCP]]></category>
		<category><![CDATA[AE]]></category>
		<category><![CDATA[afx]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[final cut pro]]></category>
		<category><![CDATA[finished]]></category>
		<category><![CDATA[render]]></category>

		<guid isPermaLink="false">http://blog.youdownwithfcp.com/?p=1162</guid>
		<description><![CDATA[This is a follow up post to my original &#8220;2 applescripts for final cut editors&#8221; post and boy is it a doozy! I didn&#8217;t write these &#8211; both scripts have been found elsewhere, but they are so useful I&#8217;m putting them up here to spread the word! The first script is called &#8220;Render Notification 1.0.2&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>This is a follow up post to my original &#8220;<a href="http://blog.youdownwithfcp.com/2010/02/15/2-applescripts-for-final-cut-pro-editors/">2 applescripts for final cut editors</a>&#8221; post and boy is it a doozy! I didn&#8217;t write these &#8211; both scripts have been found elsewhere, but they are so useful I&#8217;m putting them up here to spread the word!</p>
<p><a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/11/Screen-shot-2010-11-10-at-3.01.38-PM.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/11/Screen-shot-2010-11-10-at-3.01.38-PM.png" alt="" title="render notification 1.0.2" width="345" height="462" class="alignnone size-full wp-image-1166" /></a><br />
The first script is called &#8220;<strong>Render Notification 1.0.2</strong>&#8221; by Josh Petok from <a href="http://www.thecurrentcut.com/">the current cut.</a> It is a nice little script that watches the processor usage of a few pre-selected apps and will email you when the load goes down. In other words it alerts you to your render finishing. This is possible in a few <a href="http://blog.youdownwithfcp.com/2010/02/01/general-applescript-file-watcher/">other</a> <a href="http://blog.youdownwithfcp.com/2009/12/30/email-me-when-that-is-finished-compressor/">ways</a>, but there hasn&#8217;t been a nice clean solution that works across multiple apps before.<br />
<a href="http://www.thecurrentcut.com/2010/10/04/render-notification-app-1-0-2/"> Josh&#8217;s version is available for download here.</a><br />
I poked around in the code a little bit and enabled it to work with after effects. This is relatively untested, so it might give you an email too early or too late. All credit goes to Josh, as I&#8217;m just adding a few lines of code to his.<br />
If you&#8217;re feeling lucky, you can<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/11/RenderNotification-TinyEnormous.zip"> try the AE compatible version here.</a><br />
<span id="more-1162"></span></p>
<p><a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/11/Screen-shot-2010-11-10-at-3.02.47-PM.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/11/Screen-shot-2010-11-10-at-3.02.47-PM.png" alt="" title="AE Suicide" width="345" height="462" class="alignnone size-full wp-image-1167" /></a><br />
The second script is the strangely named <strong>&#8220;AE Suicide&#8221;</strong> (try to find an ad for that google!) from scott at <a href="http://scott.j38.net/">http://scott.j38.net/</a>. It is a great little app that does one thing: it kills after effects! AE has a pretty good crash control system built in so that if it crashes, then it generally will save a version of your project file to you current directory. The only problem is that AE also loves to hang. It will get stuck for hours if not indefinitely. What this app does is it gives AE the little nudge off of the cliff that it needs for it&#8217;s self-preservation to kick in and save out a file. The author does have a disclaimer saying that it doesn&#8217;t always work, but then again if it ever works it is better than the alternative.<br />
<a href="http://scott.j38.net/interactive/ae_suicide/"><br />
You can download AE Suicide here</a></p>
<p>If you have any other useful workflow scripts I would love to hear about them! Hit me up on the &#8220;Contact me!&#8221; box to the right, or leave them in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.youdownwithfcp.com/2010/11/10/2-more-applescripts-for-final-cut-pro-and-after-effects/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>2 Applescripts for Final cut pro Editors</title>
		<link>http://blog.youdownwithfcp.com/2010/02/15/2-applescripts-for-final-cut-pro-editors/</link>
		<comments>http://blog.youdownwithfcp.com/2010/02/15/2-applescripts-for-final-cut-pro-editors/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 09:35:03 +0000</pubDate>
		<dc:creator>ross</dc:creator>
				<category><![CDATA[applescript]]></category>
		<category><![CDATA[FCP]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[date maker]]></category>
		<category><![CDATA[final cut pro]]></category>
		<category><![CDATA[folder maker]]></category>
		<category><![CDATA[pho]]></category>
		<category><![CDATA[project folder]]></category>

		<guid isPermaLink="false">http://blog.youdownwithfcp.com/?p=496</guid>
		<description><![CDATA[Here are two scripts that I recently made. I use one script at work that is remarkably similar to this, so I wrote these two up to share. FCPFolderMaker is a simple app that builds a folder structure for you to organize your project with. The structure is as seen in the photo below. It [...]]]></description>
			<content:encoded><![CDATA[<p>Here are two scripts that I recently made. I use one script at work that is remarkably similar to this, so I wrote these two up to share.</p>
<p><strong><br />
FCPFolderMaker</p>
<ul></ul>
<p></strong> is a simple app that builds a folder structure for you to organize your project with. The structure is as seen in the photo below. It generates folders named Projects, Assets, Cache, and Exports. The idea is that this type of directory structure will greatly ease finding assets and clean things up considerably.<br />
<a href="http://blog.youdownwithfcp.com/2010/02/15/2-applescripts-for-final-cut-pro-editors/picture-41/" rel="attachment wp-att-497"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-411-399x300.png" alt="Final Cut Pro applescript project folder" title="Final Cut Pro applescript project folder" width="399" height="300" class="alignnone size-medium wp-image-497" /></a><br />
<!--click here to see more--></p>
<p><strong>FolderDateMaker</strong>
<ul></ul>
<p> is an app that has many potential uses, but it only does one simple thing: it creates a folder named with today&#8217;s date. I use it in my export folder to keep apart every day&#8217;s exports.<br />
 <a href="http://blog.youdownwithfcp.com/2010/02/15/2-applescripts-for-final-cut-pro-editors/picture-42/" rel="attachment wp-att-502"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-42-450x189.png" alt="folder Date Maker" title="folderDateMaker" width="450" height="189" class="alignnone size-medium wp-image-502" /></a><br />
<span id="more-496"></span><br />
Both scripts will need to be pasted into &#8220;Script Editor&#8221; and saved out as an app. From there I suggest you either drag them into the sidebar in your finder window, or (even better) the top bar. I used a cute animal and a monster icon for mine (<a href="http://interfacelift.com/icons/downloads/date/any/index2.html">that I got from this icon site</a>), and you can clearly see them in the top bar of each finder window above. Then to call the script, just double click on them. They will do their respective business in the top most finder window. <a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/ScriptsForFCP.zip">You should download both of them here</a> because wordpress mangles the code below.</p>
<p><strong>FCPFolderMaker</strong></p>
<p><code><br />
(*<br />
This script creates a folder structure suited for organizing a video editing job. It can be modified easily to<br />
create whatever folder structure you may desire. Ideally this script is saved as an app and run from either<br />
the script menu docklet or placed in the finder window. For more info go to http:/<br />
blog.youDownWithFCP.com.   Written by Ross 2010-01-20<br />
*)</p>
<p>tell application "Finder"<br />
	try<br />
		set theLocation to the front window<br />
		set assetsFolder to make new folder at theLocation with properties {name:"Assets"}</p>
<p>		set stillFolder to make new folder at assetsFolder with properties {name:"Still"}<br />
		set incomingFolder to make new folder at stillFolder with properties {name:"Incoming"}<br />
		set conformedFolder to make new folder at stillFolder with properties {name:"Conformed"}</p>
<p>		set videoFolder to make new folder at assetsFolder with properties {name:"Video"}<br />
		set incomingFolder to make new folder at videoFolder with properties {name:"Incoming"}<br />
		set conformedFolder to make new folder at videoFolder with properties {name:"Conformed"}</p>
<p>		set animationFolder to make new folder at assetsFolder with properties {name:"Animation"}<br />
		set incomingFolder to make new folder at animationFolder with properties {name:"Incoming"}<br />
		set conformedFolder to make new folder at animationFolder with properties {name:"Conformed"}</p>
<p>		set audioFolder to make new folder at assetsFolder with properties {name:"Audio"}<br />
		set incomingFolder to make new folder at audioFolder with properties {name:"Incoming"}<br />
		set conformedFolder to make new folder at audioFolder with properties {name:"Conformed"}</p>
<p>		set projectsFolder to make new folder at theLocation with properties {name:"Projects"}<br />
		set editFolder to make new folder at projectsFolder with properties {name:"Edit"}<br />
		set animationFolder to make new folder at projectsFolder with properties {name:"Animation"}<br />
		set dvdFolder to make new folder at projectsFolder with properties {name:"DVD"}</p>
<p>		set exportFolder to make new folder at theLocation with properties {name:"Export"}<br />
		set finalFolder to make new folder at exportFolder with properties {name:"Final"}<br />
		set briefsFolder to make new folder at theLocation with properties {name:"Briefs"}</p>
<p>		set cacheFolder to make new folder at theLocation with properties {name:"Cache"}</p>
<p>	on error<br />
		beep 1<br />
	end try<br />
end tell</code></p>
<p><strong>FolderDateMaker</strong></p>
<p><code><br />
(*<br />
This script creates a folder based on todays date. It creates the folder Year-Month-Day so the<br />
date is finder-sortable. Ideally this script is saved as an app and run from either<br />
the script menu docklet or placed in the finder window. For more info go to http:/<br />
blog.youDownWithFCP.com.   Written by Ross 2010-01-20<br />
*)</p>
<p>tell application "Finder"<br />
	try<br />
		tell (current date) to tell (year * 10000 + (its month) * 100 + day) as string to set MyDate to text 1 thru 4 &#038; "-" &#038; text 5 thru 6 &#038; "-" &#038; text 7 thru 8<br />
		make new folder at the front window with properties {name:MyDate}<br />
	on error<br />
		beep 1<br />
	end try<br />
end tell<br />
</Code></p>
<p>If you end up using these, or if you find a better way to go about this let me know in the comments! I'm also always on the prowl for more final cut related workflows and scripts. Let me know! </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.youdownwithfcp.com/2010/02/15/2-applescripts-for-final-cut-pro-editors/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>General applescript file watcher</title>
		<link>http://blog.youdownwithfcp.com/2010/02/01/general-applescript-file-watcher/</link>
		<comments>http://blog.youdownwithfcp.com/2010/02/01/general-applescript-file-watcher/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 14:25:55 +0000</pubDate>
		<dc:creator>ross</dc:creator>
				<category><![CDATA[After Effects]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[compressor]]></category>
		<category><![CDATA[FCP]]></category>
		<category><![CDATA[final cut pro]]></category>

		<guid isPermaLink="false">http://blog.youdownwithfcp.com/?p=242</guid>
		<description><![CDATA[This script is from macworld, (osx only) but the way they posted is not only horribly un-user-friendly, it also wouldn&#8217;t compile without a lot of text massaging. I decided to put it up here to save you the trouble and explain 3 ways it can be used. What it does is to look at a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.youdownwithfcp.com/2010/02/01/general-applescript-file-watcher/scripteditoricon/" rel="attachment wp-att-245"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/ScriptEditorIcon-300x300.png" alt="" title="ScriptEditorIcon" width="300" height="300" class="alignnone size-medium wp-image-245" /></a><a href="http://www.macworld.com/article/54083/2006/11/compressor_watch_folder_tip.html"></p>
<p>This script is from macworld</a>, (osx only) but the way they posted is not only horribly un-user-friendly, it also wouldn&#8217;t compile without a lot of text massaging. I decided to put it up here to save you the trouble and explain 3 ways it can be used. What it does is to look at a file and see if it is the same size as last time it checked. You can change the interval based on the application, and you can tell it what to do once it has detected the file is &#8220;finished&#8221;</p>
<p>Here are three (of many) ways it can be used. These are all based on the script below, but they would require you to add code in the section below commented with &#8220;&#8211;this is where you put your &#8220;do when finished&#8221; code&#8221; The script as it is written will beep 3 times once the file is finished and 5 times if an error occurs. If you end up writing something useful to go with this post it here for others to see!</p>
<p><strong>Firefox download monitor</strong><br />
Set this script to alert you when a big download finishes. A small interval ought to work out provided your connection doesn&#8217;t timeout.</p>
<p><strong>Compressor secondary action</strong><br />
If for some reason you don&#8217;t want to run an applescript through the default compressor interface you can do it through here. This could be because you are watching it from another computer on the network, or maybe you have other specific needs. This will also allow you to open the exported file directly with an application, which compressor doesn&#8217;t let you do.<br />
<span id="more-242"></span><br />
<strong>Export from fcp / after effects secondary action / alert</strong><br />
I guess AE dings when an export is done, but FCP doesn&#8217;t do a damn thing. If you run this on your export then it will do your bidding once the exported file is finished.</p>
<p>Here is the code!</p>
<p><code>on adding folder items to this_folder after receiving these_items<br />
	-- this is the standard intro for a folder action<br />
	try<br />
		repeat with f in theItems<br />
			-- wait for the item to be all there<br />
			set Was to 0<br />
			set isNow to 1<br />
			repeat while isNow ≠ Was<br />
				-- the basic idea is that the script loops until the file size is the same for more than 30 seconds. That means the file has finished copying.<br />
				set Was to size of (info for f)<br />
				-- this section is getting the file size of the video<br />
				delay 30 -- modify this for delay time<br />
				set isNow to size of (info for f)<br />
				-- this section is sampling the file size 30 seconds later<br />
			end repeat<br />
			--this is where you put your "do when finished" code<br />
			tell application "Finder"<br />
				beep 3<br />
			end tell<br />
		end repeat -- get next item f in thisFolder<br />
	on error error_message number error_number<br />
		if the error_number is not -128 then<br />
			tell application "Finder"<br />
				beep 5 --if the script errors out, beep 5x<br />
			end tell<br />
		end if<br />
	end try<br />
end adding folder items to</code></p>
<p>Copy the code and paste it into Script Editor. Then you can save it, apply it to a folder as a folder action and you are on your way!</p>
<p>PS> as a side note, isn&#8217;t it weird that userfriendly doesn&#8217;t have a good antonym? anti-user? Userunfriendly? </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.youdownwithfcp.com/2010/02/01/general-applescript-file-watcher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get compressor to upload to ftp once finished</title>
		<link>http://blog.youdownwithfcp.com/2010/01/22/get-compressor-to-upload-to-ftp-once-finished/</link>
		<comments>http://blog.youdownwithfcp.com/2010/01/22/get-compressor-to-upload-to-ftp-once-finished/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 14:00:39 +0000</pubDate>
		<dc:creator>ross</dc:creator>
				<category><![CDATA[applescript]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[compressor]]></category>
		<category><![CDATA[FCP]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[fetch]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[transmit]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://blog.youdownwithfcp.com/?p=179</guid>
		<description><![CDATA[This is something I have been going back and forth on for quite some time. I love the idea of a drag and drop upload to ftp. I absolutely hate the idea of having to hard code the ftp password into a piece of applescript. If that script accidentally ends up in the wrong hands [...]]]></description>
			<content:encoded><![CDATA[<p>This is something I have been going back and forth on for quite some time. I love the idea of a drag and drop upload to ftp. I absolutely hate the idea of having to hard code the ftp password into a piece of applescript. If that script accidentally ends up in the wrong hands then your server is compromised. A co worker recently suggested I look into using bookmarks from within fetch, and it works great! This way fetch keeps your password in the osx keychain and the applescript only has to know the name of the bookmark (they are called shortcuts in fetch) to call it.</p>
<p>Actually, this post has two different was of accomplishing the same goal. The simplest way is to create a shortcut in fetch and then create a droplet from it. <a href="http://fetchsoftworks.com/fetch/help/Contents/Concepts/DropletShortcuts.html">Here is a page describing how to do that.</a> Short version: command-S.<br />
<a href="http://blog.youdownwithfcp.com/2010/01/22/get-compressor-to-upload-to-ftp-once-finished/picture-37/" rel="attachment wp-att-450"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-37-450x291.png" alt="" title="Picture 37" width="450" height="291" class="alignnone size-medium wp-image-450" /></a></p>
<p>The more advanced way to do it is the script below. As it stands it offers almost the exact same thing as the droplet, but it is written in applescript, so you have room to tweak things. Would you like to add a folder with todays date to the directory? Copy the link into the clipboard and open in a web browser? There are a million possibilities, you just have to get your hands dirty.<br />
 <span id="more-179"></span><br />
<a href="http://blog.youdownwithfcp.com/2010/01/22/get-compressor-to-upload-to-ftp-once-finished/picture-38/" rel="attachment wp-att-453"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-38-209x300.png" alt="" title="Picture 38" width="209" height="300" class="alignnone size-medium wp-image-453" /></a><br />
If you really want to start automating things then you can create a folder with one version of this script for each directory / server that you may upload to and then you can select the appropriate script from the last tab in the compressor inspector window. Heck, if you do one upload frequently enough then go ahead and save that compressor / applescript combo as a droplet and put it in your dock!</p>
<p>The original code came from  <a href="http://www.proactiveinteractive.com/software/compressor/index.php">proactive interactive</a>. But I have made some tweaks for security and to allow you to open the app to select files as well as drag files on top of the app.</p>
<p>You can read the code below, but if you are going to copy and paste it, do that from <a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/03/compressorUploadApplescript.txt">here</a> as wordpress does a weird thing with quotation marks.<br />
<code><br />
on open (thefiles)<br />
	(*There should only be one file, but just in case send it through a loop*)<br />
	repeat with thefile in thefiles<br />
		FetchUploadFile(thefile)<br />
	end repeat<br />
end open</p>
<p>on FetchUploadFile(thefile)<br />
	set shortcut_name to "yourshortcutname.com"<br />
(*change the above to your shortcut name*)<br />
	with timeout of 60000 seconds<br />
		try<br />
			tell application "Fetch"<br />
				activate<br />
				open shortcut shortcut_name<br />
				put into front transfer window item thefile<br />
			end tell<br />
		on error<br />
			display dialog "error uploading " &#038; thefile<br />
		end try<br />
	end timeout<br />
end FetchUploadFile</p>
<p>on run<br />
	choose file with prompt "Select file(s) to upload:" with multiple selections allowed<br />
	open (result)<br />
end run</code></p>
<p>By tweaking the shortcuts in fetch you can select different servers and starting directories. Create one shortcut for each project and export one applescript app with each shortcut.</p>
<p>This script will also work outside of compressor. Drag and drop a file onto the app to start an upload, or double click it to bring up a &#8220;select files to upload&#8221; dialog box.</p>
<p>Side note: while I was researching this I came across <a href="http://www.apple.com/downloads/dashboard/networking_security/transmitwidget.html">a cool widget for transmit</a>. It does the same thing as this app, but it lives with your widgets and may or not be accessible from to compressor post processing window. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.youdownwithfcp.com/2010/01/22/get-compressor-to-upload-to-ftp-once-finished/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>quicktime footage to contact sheet, automated in 2 steps</title>
		<link>http://blog.youdownwithfcp.com/2010/01/11/quicktime-footage-to-contact-sheet-automated-in-2-steps/</link>
		<comments>http://blog.youdownwithfcp.com/2010/01/11/quicktime-footage-to-contact-sheet-automated-in-2-steps/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 04:48:32 +0000</pubDate>
		<dc:creator>ross</dc:creator>
				<category><![CDATA[applescript]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[FCP]]></category>
		<category><![CDATA[contact sheet]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[proof sheet]]></category>
		<category><![CDATA[quicktime]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.youdownwithfcp.com/?p=182</guid>
		<description><![CDATA[Contact sheets can be an incredibly useful tool to deal with tons of photos. For non-photographic types, these are sheets with lots of little thumbnails on them to quickly show a lot of images. One little-known use is to use them to show stills pulled from a video. This can help to show clients / [...]]]></description>
			<content:encoded><![CDATA[<p>Contact sheets can be an incredibly useful tool to deal with tons of photos. For non-photographic types, these are sheets with lots of little thumbnails on them to quickly show a lot of images. One little-known use is to use them to show stills pulled from a video.<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-311.png" rel=“lightbox“><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-311.png" alt="" title="Picture 31" width="495" height="617" class="alignnone size-full wp-image-337" /></a></p>
<p>This can help to show clients / account managers footage without forcing them to watch hours and hours at a time. It can also be really useful to quickly find out what take the skiier landed the trick, or pick the best lit scene.<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-24.png" rel=“prettyPhoto“><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-24.png" alt="" title="qt-&gt;thumbs applescript" width="357" height="140" class="alignnone size-full wp-image-319" /></a><br />
Enough about the benefits of this, here&#8217;s how to create them. I made an applescript that will take any quicktime clip and spit out stills based on whatever interval you decide. <a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/QTThumbsAdvanced.zip">You can download it here. </a>It will label the stills with their frame number too. Here it is explained in pictures.<br />
To kick it off, drag one or more movie files onto the applescript.<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-25.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-25-372x300.png" alt="" title="Picture 25" width="372" height="300" class="alignnone size-medium wp-image-316" /></a></p>
<p>Click here to see <span id="more-182"></span><br />
Select a destination folder for the images to sit in. It is generally a good idea to make a new folder for this, as it will generally be a large number of photos.</p>
<p><a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-26.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-26.png" alt="" title="Picture 26" width="440" height="229" class="alignnone size-full wp-image-315" /></a><br />
Type in the base name for your exported files. A shorter name here is easier to fit on the contact sheet. </p>
<p><a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-27.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/Picture-27.png" alt="" title="Picture 27" width="440" height="229" class="alignnone size-full wp-image-320" /></a><br />
In the last step, select the interval between stills. It defaults to 60, or one photo a minute. If you have a different need, feel free to change it! When you hit Ok Quicktime should jump to the first interval and start exporting files to your destination folder. </p>
<p>Next up, load all of the photos into photoshop using the contact sheet II option under file>automate.<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/ContactSheet.jpg"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/ContactSheet.jpg" alt="" title="Contact Sheet II" width="450" height="616" class="alignnone size-full wp-image-318" /></a></p>
<p>Pick whatever options you want for # of pictures and layout, and select your source folder. </p>
<p><a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/contactsheet2.png"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/contactsheet2.png" alt="" title="contactsheet2" width="450" height="460" class="alignnone size-full wp-image-317" /></a><br />
Once photoshop is finished you can print your contact sheets out, or print them to pdf and save them for emailing.</p>
<p>One Note: The files have the frame number appended to the end of the name. To see frame numbers in quicktime, just click on the clock to the left of the play bar. A little menu will pop up, and you can select frames. Now you can directly relate the filename to the section of the footage.<br />
<a href="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/frame-number.jpg"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2010/01/frame-number.jpg" alt="" title="frame-number" width="302" height="118" class="alignnone size-full wp-image-323" /></a></p>
<p>Let me know if you end up using this, and tell me if there are any features you would like to see added! </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.youdownwithfcp.com/2010/01/11/quicktime-footage-to-contact-sheet-automated-in-2-steps/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Email me when that is finished, compressor!</title>
		<link>http://blog.youdownwithfcp.com/2009/12/30/email-me-when-that-is-finished-compressor/</link>
		<comments>http://blog.youdownwithfcp.com/2009/12/30/email-me-when-that-is-finished-compressor/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 03:37:02 +0000</pubDate>
		<dc:creator>ross</dc:creator>
				<category><![CDATA[applescript]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[compressor]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[render]]></category>

		<guid isPermaLink="false">http://blog.youdownwithfcp.com/?p=9</guid>
		<description><![CDATA[I don&#8217;t know if you have ever been able to get compressor to email you when it is done compressing, but I never have. The email control panel in compressor never seems to get the job done, so I decided to go about it a different way. I just wrote an applescript that you can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.youdownwithfcp.com/2009/12/30/email-me-when-that-is-finished-compressor/picture-12/" rel="attachment wp-att-21"><img src="http://blog.youdownwithfcp.com/wp-content/uploads/2009/12/Picture-12.png" alt="" title="apple compressor logo" width="234" height="284" class="alignnone size-full wp-image-21" /></a></p>
<p>I don&#8217;t know if you have ever been able to get compressor to email you when it is done compressing, but I never have. The email control panel in compressor never seems to get the job done, so I decided to go about it a different way.
</p>
<p><P></p>
<p>I just wrote an applescript that you can link to in compressor (last tab of the compression settings panel) It&#8217;s useful for when you&#8217;re really focused on something exporting, so you know when to be back at the old desk.
</p>
<p><P><br />
It will email you when it is done. simple. Click the read more link below to read how it&#8217;s done.<br />
<br />
<span id="more-9"></span><br />
Here it is.<br />
<br />
<code>on open (thefiles)<br />
--There should only be one file, but just in case send it through a loop<br />
repeat with thefile in thefiles<br />
do shell script "mail -s 'your mail subject here' <a href="mailto:you@youremail.com" target="_blank">you@youremail.com</a> &lt; /Users/YOURUSERNAME/Documents/&gt; emailcontent.txt"<br />
end repeat<br />
end open</code>
</p>
<p><P><br />
The file emailcontent.txt is just a textfile with the content of the email in it. Replace the email in the script with your email address. Paste this into script editor, save it as an application, link to it from compressor and BOOM! you&#8217;ve got mail!
</p>
<p><P><br />
One other trick is that you could send an email to your cellphone as a text message. For more info on that, <a href="http://www.makeuseof.com/tag/email-to-sms/" target="_blank">check out this link.</a>
</p>
<p><P><br />
This script sends mail through port 25, and many isps have this port blocked. You may run into trouble if they have it blocked. There are other ways of sending mail via applescript, but I will leave that part up to you.
</p>
<p><P></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.youdownwithfcp.com/2009/12/30/email-me-when-that-is-finished-compressor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

