<?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>techscorn &#187; leopard</title>
	<atom:link href="http://www.techscorn.com/tag/leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techscorn.com</link>
	<description>sometimes tech. sometimes scorn. sometimes both.</description>
	<lastBuildDate>Fri, 20 Jan 2012 08:33:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Leopard Screencaps w/o Shadow</title>
		<link>http://www.techscorn.com/2008/02/leopard-screencaps-wo-shadow/</link>
		<comments>http://www.techscorn.com/2008/02/leopard-screencaps-wo-shadow/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 19:09:44 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[screencapture]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.techscorn.com/2008/02/20/leopard-screencaps-wo-shadow/</guid>
		<description><![CDATA[Ever since upgrading to Leopard, I was surprised to find that screen captures of windows now include a drop shadow. If you&#8217;re not familiar with OS X&#8217;s built-in screencap utility, you can hit cmd-shift-3 to grab the full screen, cmd-shft-4 to get selection crosshairs, and if you use cmd-shift-4 then hit the spacebar, you&#8217;ll be [...]]]></description>
			<content:encoded><![CDATA[<p><a title="man screencap" href="http://www.techscorn.com/wp-content/uploads/2008/02/man-screencap.png"><img style="margin: 3px;" src="http://www.techscorn.com/wp-content/uploads/2008/02/man-screencap.png" alt="man screencap" width="299" height="188" align="right" /></a>Ever since upgrading to Leopard, I was surprised to find that screen captures of windows now include a drop shadow. If you&#8217;re not familiar with OS X&#8217;s built-in screencap utility, you can hit cmd-shift-3 to grab the full screen, cmd-shft-4 to get selection crosshairs, and if you use cmd-shift-4 then hit the spacebar, you&#8217;ll be able to grab any screen elements (windows, menus, etc.). In Tiger, the latter method would grab just the window, and in Leopard, it grabs the window plus its drop shadow. I found this extremely annoying, because I often need to put together instruction sheets for users, and I found I was always having to crop-out the shadow.</p>
<p>Since Leopard was released, I would occasionally google to try to find a solution to this problem, but have never been able to find a fix. Until today, when I had an epiphany. OS X has a command line screen capture tool. &#8220;Perhaps I&#8217;ll find a clue there,&#8221; I thought. Sure enough &#8211; pay dirt. Look what I found in the man page&#8230;<span id="more-37"></span></p>
<p><code>-o      In window capture mode, do not capture the shadow of the window.</code></p>
<p>That right there tells me that it&#8217;s an option, and that there&#8217;s at least a workaround.  So I coupled this with two other options, interactive mode, and clipboard (rather than save) and voila! It works!</p>
<p><code>screencapture -ioc</code></p>
<p>Using the command above, I was immediately presented with Leopard&#8217;s screen cap crosshairs, so I then hit the spacebar to switch to element selection mode, moused over the window I wanted to grab, then clicked. This then put the image in my clipboard, so I switched to Preview.app, and opened a new document, which automatically inserts the contents of the clipboard. Without the useless drop shadow.</p>
<p>This is definitely a workaround for now. I&#8217;m hoping there&#8217;s a preference file somewhere that can be modified to omit the drop shadow from screen caps by default. Until then, I just wrapped the command above in some AppleScript for ease of use:</p>
<p><code><span style="color: #0000ff;">do shell script</span> "screencapture -ioc"</code></p>
<p>Saved as an AppleScript app works great because you can invoke it by name via Spotlight.</p>
<p>Have fun, and let me know if you figure out where this default preference resides.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techscorn.com/2008/02/leopard-screencaps-wo-shadow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

