<?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>OmegaDelta &#187; bash</title>
	<atom:link href="http://omegadelta.net/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://omegadelta.net</link>
	<description>It&#039;s good</description>
	<lastBuildDate>Fri, 03 Feb 2012 00:03:00 +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>Open Bash (a.k.a. Terminal) from Finder and Vice Versa</title>
		<link>http://omegadelta.net/2011/10/28/open-bash-terminal-from-finder-and-vice-versa/</link>
		<comments>http://omegadelta.net/2011/10/28/open-bash-terminal-from-finder-and-vice-versa/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 11:49:48 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://omegadelta.net/?p=3127</guid>
		<description><![CDATA[GUI&#8217;s are great. And so are shells. Here&#8217;s how you can have the best of both worlds with minimal mucking around: Finder to Bash Create this a simple apple script (see code below, after the jump) in the &#8216;AppleScript Editor&#8217;, save as an Application, and drag it into your Finder&#8217;s toolbar. Clicking this button will [...]]]></description>
			<content:encoded><![CDATA[<p>GUI&#8217;s are great. And so are shells. Here&#8217;s how you can have the best of both worlds with minimal mucking around:</p>
<h3>Finder to Bash</h3>
<p>Create this a simple apple script (see code below, after the jump) in the &#8216;AppleScript Editor&#8217;, save as an Application, and drag it into your Finder&#8217;s toolbar. Clicking this button will open that folder in bash!  If you&#8217;re clever, you can open the package contents of &#8216;Terminal&#8217;, copy the icon file, then open the contents of your script application, find the icon and replace it with the Termainal one. Or if you&#8217;re lazy (and trusting) you can just <a title="Open Terminal At Finder Location Apple Script" href="http://omegadelta.net/wp-content/uploads/2011/10/OpenTerminalAtFinderLocation2.zip">download the one I prepared earlier</a>.</p>
<p><a href="http://omegadelta.net/wp-content/uploads/2011/10/Screen-Shot-2011-10-28-at-8.06.23-PM.png"><img title="Open Terminal At Finder Location" src="http://omegadelta.net/wp-content/uploads/2011/10/Screen-Shot-2011-10-28-at-8.06.23-PM.png" alt="Open Terminal At Finder Location" width="192" height="66" /></a></p>
<p>In Lion you can also enable this as a <a href="http://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder/7054045#7054045">right-click service</a> of folders, go to <code>System Preferences &gt; Keyboard &gt; Keyboard Shortcuts &gt; Services</code> and enable <strong>New Terminal at Folder</strong> or <strong>New Terminal Tab at Folder</strong>, then you can <code><em>right click</em> -&gt; Services</code> on any folder in finder and open it in Finder that way. You can also assign a keyboard shortcut.</p>
<p><a href="http://omegadelta.net/wp-content/uploads/2011/10/contextMenu.png"><img title="contextMenu" src="http://omegadelta.net/wp-content/uploads/2011/10/contextMenu-300x115.png" alt="" width="300" height="115" /></a><a href="http://omegadelta.net/wp-content/uploads/2011/10/contextMenu.png"><br />
</a></p>
<p>&nbsp;</p>
<h3>Bash to Finder</h3>
<p>If you&#8217;re in bash, you can simply <code>open .</code> to open the current directory in Finder (or <code>open path/to/folder</code> to open a different one). open-ing a file will also launch that file in the default app. Neat.</p>
<p><span id="more-3127"></span></p>
<hr />
<p>The full apple script. Sourced from <a href="http://hints.macworld.com/article.php?story=20020426093503563">macworld</a>, but fixed to remove an extra blank window being shown if Terminal wasn&#8217;t already running.</p>
<pre style="brush: applescript;"># originally from: http://hints.macworld.com/article.php?story=20020426093503563
# improved by William Denniss
on run
	tell application "Finder"
		try
			activate
			set frontWin to folder of front window as string
			set frontWinPath to (get POSIX path of frontWin)
			do shell script "open -a Terminal \"" &amp; frontWinPath &amp; "\""
		on error error_message
			beep
			display dialog error_message buttons ¬
				{"OK"} default button 1
		end try
	end tell
end run</pre>
]]></content:encoded>
			<wfw:commentRss>http://omegadelta.net/2011/10/28/open-bash-terminal-from-finder-and-vice-versa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dSYM Archive Script</title>
		<link>http://omegadelta.net/2009/11/13/dsym-archive-script/</link>
		<comments>http://omegadelta.net/2009/11/13/dsym-archive-script/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 09:44:03 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[iphone dev]]></category>

		<guid isPermaLink="false">http://omegadelta.net/?p=1493</guid>
		<description><![CDATA[Archiving dSYM for production builds is a good idea. An easy way to do it is to add a build script at the end of your build. in XCode-&#62;Targets-&#62;YourBuildName right click, and select Add -&#62; New Build Phase -&#62; New Run Script Build Phase and copy in this script. ArchiveDSYMScript Repeat for all targets. Ensure [...]]]></description>
			<content:encoded><![CDATA[<p>Archiving dSYM for production builds is a <a href="http://omegadelta.net/2009/11/13/analysing-iphone-crash-dumps-os-3-0/">good idea</a>.</p>
<p>An easy way to do it  is to add a build script at the end of your build.</p>
<p>in XCode-&gt;Targets-&gt;YourBuildName<br />
right click, and select Add -&gt; New Build Phase -&gt; New Run Script Build Phase</p>
<p>and copy in this script.   <a href='http://omegadelta.net/wp-content/uploads/2009/11/ArchiveDSYMScript.txt'>ArchiveDSYMScript</a></p>
<p>Repeat for all targets.  Ensure the order is after the &#8216;Link Binary With Libaries&#8217; task.</p>
<p>NB.  This excludes &#8220;Debug&#8221; and &#8220;Release&#8221; build types, as I use &#8220;Distribution&#8221; and &#8220;Distribution Ad-Hoc&#8221; for my distribution builds.  Easy to change, if you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://omegadelta.net/2009/11/13/dsym-archive-script/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

