<?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>Martin Ström &#187; iterm</title>
	<atom:link href="http://my-domain.se/tag/iterm/feed/" rel="self" type="application/rss+xml" />
	<link>http://my-domain.se</link>
	<description></description>
	<lastBuildDate>Wed, 11 Jan 2012 11:04:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>AppleScript to open iTerm tabs for Rails development</title>
		<link>http://my-domain.se/applescript-to-open-iterm-tabs-for-rails-development/</link>
		<comments>http://my-domain.se/applescript-to-open-iterm-tabs-for-rails-development/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 10:53:40 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[iterm]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/2007/07/19/applescript-to-open-iterm-tabs-for-rails-development/</guid>
		<description><![CDATA[Update: This script is ported (and improved) to work with OSX Leopards&#8217; Terminal.app. I never really liked iTerm because of slow redrawing, ugly text anti aliasing and not reflowing text when resizing the window. After reading some interviews on a Rails site today and saw that a lot of people are using iTerm i wanted [...]]]></description>
			<content:encoded><![CDATA[<p>Update: <a href="http://burnfield.com/martin/2008/07/12/my-terminal-setup-for-rails-development/">This script is ported (and improved) to work with OSX Leopards&#8217; Terminal.app.</a></p>

<p><a href="http://www.flickr.com/photos/haraldmartin/850313291/"><img src="http://farm2.static.flickr.com/1021/850313291_b0fc5a1a29.jpg?v=0" alt=""></a></p>

<p>I never really liked <a href="http://iterm.sourceforge.net">iTerm</a> because of slow redrawing, ugly text anti aliasing and not reflowing text when resizing the window.</p>

<p>After reading some interviews on a Rails site today and saw that a lot of people are using iTerm i wanted to give one more try (because I&#8217;d really like a tabbed terminal).</p>

<p>It has improved a lot the latest months and seems really usable now. To make Rails development easier, I hacked together a small AppleScript what will ask you for the path to the Rails directory you want to use and then open four new tabs with Server/Mongrel, Console, Autotest and the directory itself. I thought it could be useful for others as well so here you go:</p>

<p>Save as an .app and run from Quicksilver:</p>

<pre><code>
global rails_dir

tell application "iTerm"
    activate
    set rails_dir to the text returned of (display dialog ¬
        "Please Enter the Path to Your Rails Directory" default answer ¬
        "~/Projects/" as text)

    if (count of terminal) = 0 then make new terminal

    my open_tab("Server", "&#038;&#038; ./script/server")
    my open_tab("Console", "&#038;&#038; ./script/console")
    my open_tab("Autotest", "&#038;&#038; autotest")
    my open_tab("Rails Directory", "")
end tell

on open_tab(title, command)
    tell application "iTerm" to tell first terminal
        launch session "Default"
        tell last session
            write text "cd " &#038; rails_dir &#038; command
            set name to title
        end tell
    end tell
end run_command
</code></pre>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

