<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Automated Workflow I</title>
	<link>http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/</link>
	<description>Photography in Small Doses</description>
	<pubDate>Fri, 25 Jul 2008 11:16:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>

	<item>
		<title>By: photographyVoter.com</title>
		<link>http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/#comment-765</link>
		<author>photographyVoter.com</author>
		<pubDate>Fri, 27 Apr 2007 12:33:52 +0000</pubDate>
		<guid>http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/#comment-765</guid>
					<description>Automated Workflow I - Scripting, OS X, Lightroom...

Learn how to write shell scripts and AppleScripts to automate the application of watermarks and set up Lightroom post-processing filters....</description>
		<content:encoded><![CDATA[<p>Automated Workflow I &#8211; Scripting, OS X, Lightroom&#8230;</p>
<p>Learn how to write shell scripts and AppleScripts to automate the application of watermarks and set up Lightroom post-processing filters&#8230;.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Charles Darwall</title>
		<link>http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/#comment-857</link>
		<author>Charles Darwall</author>
		<pubDate>Fri, 06 Jul 2007 02:17:26 +0000</pubDate>
		<guid>http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/#comment-857</guid>
					<description>Wonderful tutorial.... but I'm a Win XP user (don't hold it against me.  I'm a nubie.)   Where can I get the AppleScript code for win XP?  I've spent hours downloading and reading everyting in GraphicsMagick.  I have ActivePerl, PerlMagick, etc. loaded and have no idea what I'm doing.  Of  course I have LightRoom.

Thanks,

Charles</description>
		<content:encoded><![CDATA[<p>Wonderful tutorial&#8230;. but I&#8217;m a Win XP user (don&#8217;t hold it against me.  I&#8217;m a nubie.)   Where can I get the AppleScript code for win XP?  I&#8217;ve spent hours downloading and reading everyting in GraphicsMagick.  I have ActivePerl, PerlMagick, etc. loaded and have no idea what I&#8217;m doing.  Of  course I have LightRoom.</p>
<p>Thanks,</p>
<p>Charles</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/#comment-858</link>
		<author>Aaron</author>
		<pubDate>Fri, 06 Jul 2007 11:37:55 +0000</pubDate>
		<guid>http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/#comment-858</guid>
					<description>Unfortunately, I don't think there is a way to run AppleScript directly in Windows. It's not necessary to write the Lightroom post-processing filter in AppleScript, though, and I think you're on the right track with ActivePerl and PerlMagick, but you'll have to learn how to write some Perl!

An alternative (perhaps somewhat easier) is to install "Windows binaries of ImageMagick":http://www.imagemagick.org/script/binary-releases.php#windows rather than use the PerlMagick bindings. You'll basically have to translate my AppleScript snippet into Perl and use it as your post-processing filter.

Here's an _idea_ of how it might be done, but I haven't even remotely tested this. You should avoid using paths with spaces in them for where you place the ImageMagick binaries and your watermark image if possible.

&lt;code lang="perl"&gt;
#!/usr/bin/perl

my $IM = 'C:\ImageMagick\bin\composite.exe';
my $watermark = 'C:\Documents and Settings\My Username\My Documents\My Pictures\copyright.gif';

if($#ARGV gt -1) {
    foreach $arg (@ARGV) {
        qx/$IM -compose Over -gravity southwest "$watermark" "$arg" "$arg"/;
    }
}
&lt;/code&gt;

I wish you luck!</description>
		<content:encoded><![CDATA[<p>Unfortunately, I don&#8217;t think there is a way to run AppleScript directly in Windows. It&#8217;s not necessary to write the Lightroom post-processing filter in AppleScript, though, and I think you&#8217;re on the right track with ActivePerl and PerlMagick, but you&#8217;ll have to learn how to write some Perl!</p>
<p>An alternative (perhaps somewhat easier) is to install <a href="http://www.imagemagick.org/script/binary-releases.php#windows">Windows binaries of ImageMagick</a> rather than use the PerlMagick bindings. You&#8217;ll basically have to translate my AppleScript snippet into Perl and use it as your post-processing filter.</p>
<p>Here&#8217;s an <em>idea</em> of how it might be done, but I haven&#8217;t even remotely tested this. You should avoid using paths with spaces in them for where you place the ImageMagick binaries and your watermark image if possible.</p>
<div class="code perl" style="font-family: monospace;">
<p><span style="color: #808080; font-style: italic;">#!/usr/bin/perl</span></p>
<p><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$IM</span> = <span style="color: #ff0000;">'C:\ImageMagick\bin\composite.exe'</span>;<br />
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$watermark</span> = <span style="color: #ff0000;">'C:\Documents and Settings\My Username\My Documents\My Pictures\copyright.gif'</span>;</p>
<p><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>$<span style="color: #808080; font-style: italic;">#ARGV gt -1) {</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span> <span style="color: #0000ff;">$arg</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">@ARGV</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.perldoc.com/perl5.6/pod/func/qx.html"><span style="color: #000066;">qx</span></a>/<span style="color: #0000ff;">$IM</span> -compose Over -gravity southwest <span style="color: #ff0000;">&quot;$watermark&quot;</span> <span style="color: #ff0000;">&quot;$arg&quot;</span> <span style="color: #ff0000;">&quot;$arg&quot;</span>/;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></p>
<p>&nbsp;</p></div>
<p>I wish you luck!</p>
]]></content:encoded>
				</item>
</channel>
</rss>
