<?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>Bill Higgins&#039; Blog &#187; applescript</title>
	<atom:link href="http://billhiggins.us/blog/tag/applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://billhiggins.us/blog</link>
	<description></description>
	<lastBuildDate>Thu, 08 Dec 2011 03:12:16 +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>AppleScript to resize Safari for recording a YouTube HD video</title>
		<link>http://billhiggins.us/blog/2010/02/28/script-to-resize-safari-for-recording-a-youtube-hd-video/</link>
		<comments>http://billhiggins.us/blog/2010/02/28/script-to-resize-safari-for-recording-a-youtube-hd-video/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 01:39:21 +0000</pubDate>
		<dc:creator>Bill Higgins</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://billhiggins.us/blog/?p=137</guid>
		<description><![CDATA[Occasionally I need to produce YouTube HD videos showing me doing something in a web browser. Up &#8217;till now I&#8217;ve had to painfully, manually resize the browser window to 1280&#215;720 so that the video didn&#8217;t get unnaturally shrunk or expanded by my screencast rendering software. Tonight I figured out a way to automatically resize my [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally I need to produce <a href="http://youtube.com/">YouTube</a> <a href="http://en.wikipedia.org/wiki/High-definition_video">HD</a> videos showing me doing something in a web browser. Up &#8217;till now I&#8217;ve had to painfully, manually resize the browser window to 1280&#215;720 so that the video didn&#8217;t get unnaturally shrunk or expanded by my screencast rendering software. Tonight I figured out a way to automatically resize my browser window to the exact dimensions using <a href="http://www.macosxautomation.com/applescript/">AppleScript</a>.</p>
<p>Here is the magical incantation:</p>
<p style="padding-left: 30px;"><strong>tell</strong> <em><span style="color: #0000ff;">application</span></em> &#8220;Safari&#8221;</p>
<p style="padding-left: 60px;"><strong><span style="color: #0000ff;">activate</span><br />
<span style="font-weight: normal;"><strong>set</strong> <strong>the</strong> <span style="color: #800080;">bounds</span> <strong>of</strong> <strong>the</strong> <strong>first</strong> <em><span style="color: #0000ff;">window</span></em> <strong>to</strong> {0, 0, 1280, 720}</span></strong></p>
<p style="padding-left: 30px;"><strong><span style="font-weight: normal;"><strong>end</strong> <strong>tell</strong></span></strong></p>
<p>Run this application in AppleScript Editor (<code>/Applications/Utilities/AppleScript Editor</code>) and your browser will be the perfect size for recording movies. You can save the script to a folder for later reuse.</p>
]]></content:encoded>
			<wfw:commentRss>http://billhiggins.us/blog/2010/02/28/script-to-resize-safari-for-recording-a-youtube-hd-video/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

