<?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>Mac Developer Tips &#187; Tools/Utilities</title>
	<atom:link href="http://MacDeveloperTips.com/category/tools-utilities/feed" rel="self" type="application/rss+xml" />
	<link>http://MacDeveloperTips.com</link>
	<description>Tips, tools and code for iPhone and Mac developers.</description>
	<lastBuildDate>Tue, 29 Jun 2010 19:58:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Open Source Screen Capture Tool</title>
		<link>http://MacDeveloperTips.com/tools-utilities/open-source-screen-capture-tool.html</link>
		<comments>http://MacDeveloperTips.com/tools-utilities/open-source-screen-capture-tool.html#comments</comments>
		<pubDate>Mon, 23 Feb 2009 14:56:17 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Tools/Utilities]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/?p=262</guid>
		<description><![CDATA[I&#8217;ve been on the hunt for an open source screen cature tool for the Mac. I finally found what I was looking for, a tool that in which you can specify the exact size of the capture window. Let me explain&#8230; In the process of creating screenshots to accompany applications submitted to the App Store, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been on the hunt for an open source screen cature tool for the Mac. I finally found what I was looking for, a tool that in which you can specify the exact size of the capture window. Let me explain&#8230;</p>
<p>In the process of creating screenshots to accompany applications submitted to the App Store, you can include up to 5 images. Although the images can be anything you like, typically the images consist of screenshots of an application running in the iPhone simulator. When working with the simulator there are two sizes used most frequently, 320w x 460h (Apple recommends not to show the status bar across the top) and 480w x 320h (landscape mode).<br />
<span id="more-262"></span></p>
<p>Until I found <a target="_blank" href="http://www.chimoosoft.com/products/captureme/">Capture Me</a>, I would use the built-in screen capture, command-shift-4, to capture screenshots. Problem is, there was no means to specify the exact image size to capture, so this approach requires either a very steady hand and a good eye, or capturing an area obviously larger than needed and cropping in Preview or another tool.</p>
<p>To use Capture Me, you specify the size of the area to capture and then drag a semi-transparent window over the capture area. Clicking inside the capture area creates a screenshot. You can save screenshots to the desktop (filename will be automatically generated) or have the screenshot copied to the clipboard, or both! </p>
<p>Capture Me also offers a screen recording feature, however, I haven&#8217;t given this a go as of yet.</p>
<p><strong>Additional Features:</strong><br />
Here are a few things that I think would make for some nice additions to Capture Me:</p>
<p>#1 &#8211; Specify the location to save the file</p>
<p>#2 &#8211; Specify the filename for the screenshot. For example, when capturing/uploading screenshots to the App Store I use the filenames &#8220;screenshot1.jpg&#8221; &#8220;screenshot2.jpg&#8221; etc. If I could tell Capture Me to use this same format, it would save me the trouble of renaming the files.</p>
<p>#3 &#8211; The third feature is a little harder to describe, so let me explain how I use the tool which should help clarify what I am after. As I mentioned above, I use Capture Me to create screenshots of the iPhone simulator, what this entails is dragging Capture Me over the simulator and clicking inside the Capture Me window. In order to create the next screenshot, I need to click/drag the Capture Me window and move it to the side, click on the iPhone simulator to setup the next screenshot, then drag the Capture Me window back over the simulator for the next capture. </p>
<p>If I could tell the Capture Me window to move to the left/right the same width of the area I am capturing (+/- a few pixles) I could quickly capture a series of screenshots with ease. Even better if one keyboard shortcut would tell Capture Me to slide to the left/right, and one shortcut to tell Capture Me to slide it back to it&#8217;s original location.</p>
<p>I hope to get some time over the coming weeks and/or months to poke around the Capture Me code and see how far I can get to add the features above. If you beat me to the punch, drop me a note, and count me in as a beta tester.</p>
<p>Many thanks to <a target="_blank" href="http://www.chimoosoft.com/">Chimoosoft</a> for creating, and open sourcing, <a  target="_blank" href="http://www.chimoosoft.com/products/captureme/">Capture Me</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/tools-utilities/open-source-screen-capture-tool.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Chm Viewer &#8211; Chmox</title>
		<link>http://MacDeveloperTips.com/tools-utilities/chm-viewer-chmox.html</link>
		<comments>http://MacDeveloperTips.com/tools-utilities/chm-viewer-chmox.html#comments</comments>
		<pubDate>Thu, 22 May 2008 13:05:09 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Tools/Utilities]]></category>
		<category><![CDATA[chm]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/tools-utilities/chm-viewer-chmox.html</guid>
		<description><![CDATA[Chmox is a chm viewer for Mac OS X.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever bumped into a Microsoft Compiled HTML help file (the giveway is the .chm extension) and resorted to starting up a virtual machine in order to run an instance of Windows to view the file, there&#8217;s a better way&#8230;a chm viewer for Mac OS X.</p>
<p><img src="http://macdevelopertips.com/wp-content/uploads/2008/03/chmox.jpg" align="right" height="86" width="86" /><a href="http://chmox.sourceforge.net/" target="_blank">Chmox</a> is an open source application that displays chm files on Mac OS X. Viewing a file using chmox is as  simple as downloading and extracting a dmg, pointing at a chm file and you are good to go.</p>
<p><img src="http://chmox.sourceforge.net/screenshot.jpg" height="480" width="504" /></p>
<p>Chmox is written in <a href="http://developer.apple.com/cocoa/" target="_blank">Cocoa</a> (Objective-C) and uses both <a href="http://webkit.org/" target="_blank">WebKit</a>, and <a href="http://www.jedrea.com/chmlib/" target="_blank">chmlib</a>. If you are looking to dig a little deeper into how to work with chm files, <a href="http://www.speakeasy.org/~russotto/chm/" target="_blank">Matthew Russotto&#8217;s site</a> is also worth a visit. Matthew has included information on the chm file format, which you can find <a href="http://www.speakeasy.org/~russotto/chm/chmformat.html" target="_blank">here</a>.</p>
<p>A good way to learn more about how chmox works is to spend some time viewing the source files, which you can peruse on the chmox project at <a href="http://chmox.cvs.sourceforge.net/chmox/Sources/" target="_blank">sourceforge</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/tools-utilities/chm-viewer-chmox.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pastebin</title>
		<link>http://MacDeveloperTips.com/tools-utilities/pastebin.html</link>
		<comments>http://MacDeveloperTips.com/tools-utilities/pastebin.html#comments</comments>
		<pubDate>Wed, 21 May 2008 13:27:37 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Tools/Utilities]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/tools-utilities/pastebin.html</guid>
		<description><![CDATA[I recently bumped into a clever tool for soliciting debugging help. Pastebin is a web-app where you upload a snippet of code for others to review. Viewers can makes changes and suggestions to the code in a separate window. There are some handy features including syntax highlighting and the option to callout specific lines of [...]]]></description>
			<content:encoded><![CDATA[<p>I recently bumped into a clever tool for soliciting debugging help. <a href="http://pastebin.com/" target="_blank">Pastebin</a> is a web-app where you upload a snippet of code for others to review. Viewers can makes changes and suggestions to the code in a separate window. There are some handy features including syntax highlighting and the option to callout specific lines of code.</p>
<p>Here&#8217;s how it works. First, you paste a block of code into a textbox, and choose the language for syntax highlighting. Enter a name and click Send.</p>
<p><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/05/pastebin1.png" />\</p>
<p>Here is what the code looks like once uploaded to Pastebin.</p>
<p><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/05/pastebin2.png" /></p>
<p>Pastebin generates a URL that you can use to point others at your code block. People can make suggestions on your code, including calling out a specific line using @@. See the example below where I entered a comment and made a minor code change.</p>
<p><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/05/pastebin3.png" /></p>
<p>Once the change is saved, Pastebin updates the code block to look as follows:</p>
<p><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/05/pastebin4.png" /></p>
<p>One additional trick you can do with Pastebin is create a sub-domain for your own specific debugging needs. For example, if I type in http://macdevtips.pastebin.com, I get a private area for working with code snippets. This area is still viewable by anyone (who knows or guesses the sub-domain), however, posts are not shown in the &#8220;Recent Posts&#8221; section at the homepage of Pastebin (it&#8217;s easiest to understand by simply giving it a try).</p>
<p>Pastebin is a nice tool when you need another set of eyes to look at your code.</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/tools-utilities/pastebin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting Images Types</title>
		<link>http://MacDeveloperTips.com/tools-utilities/converting-images-types.html</link>
		<comments>http://MacDeveloperTips.com/tools-utilities/converting-images-types.html#comments</comments>
		<pubDate>Tue, 06 May 2008 12:03:38 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Tools/Utilities]]></category>
		<category><![CDATA[convert images]]></category>
		<category><![CDATA[preview]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/tools-utilities/converting-images-types.html</guid>
		<description><![CDATA[I continue to find the Preview application to be a handy little tool. It&#8217;s not that Preview supports an enormous feature set for working with images, as much as each time over the last few months that I&#8217;ve look to the Previewer to help me out, it did. The first time this came about I [...]]]></description>
			<content:encoded><![CDATA[<p>I continue to find the Preview application to be a handy little tool. It&#8217;s not that Preview supports an enormous feature set for working with images, as much as each time over the last few months that I&#8217;ve look to the Previewer to help me out,  it did.</p>
<p>The first time this came about I simply needed to resize an image to post on this blog &#8211; from the Tools menu, click Adjust Size and save the file, that&#8217;s it, done (and of course it can preserve the aspect ratio). My most recent encounter was when I needed to convert a file type from JPG to GIF. Again, a few clicks and it&#8217;s done &#8211; open an image, from the file menu choose the Save As option and from the dialog box select the image type. The figure below shows the supported file types; notice you can even save an image as a PDF.</p>
<p><img src="http://macdevelopertips.com/wp-content/uploads/2008/05/convert-img.png" height="227" width="164" /></p>
<p>By no means a full-fledged image editing program, and never intended to be, Previewer is still much more than its name suggests.</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/tools-utilities/converting-images-types.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screencasts with ScreenFlow &#8211; Part 3</title>
		<link>http://MacDeveloperTips.com/tools-utilities/screenflow-part-3.html</link>
		<comments>http://MacDeveloperTips.com/tools-utilities/screenflow-part-3.html#comments</comments>
		<pubDate>Fri, 11 Apr 2008 12:53:31 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Tools/Utilities]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[screenflow]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/tools-utilities/screenflow-part-3.html</guid>
		<description><![CDATA[I&#8217;ve covered some of the basics for working with ScreenFlow in the two previous posts. At this point I want to show you a non-conventional way that I use screencasts on a regular basis. What I am referring to is creating videos that are not meant to live on YouTube or another publicly accessible server, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve covered some of the basics for working with <a href="http://www.varasoftware.com/products/screenflow/" target="_blank">ScreenFlow</a> in the two previous posts. At this point I want to show you a non-conventional way that I use screencasts on a regular basis. <img src="http://www.macdevelopertips.com/wp-content/uploads/2008/04/screenflowLogo.jpg" align="left" height="110" width="110" />What I am referring to is creating videos that are not meant to live on YouTube or another publicly accessible server, rather, videos that have a very limited lifespan, as in hours.</p>
<p>I often find that a quick screencast is the most efficient means to explain something, from how to install/configuration an application to pointing out a problem spot in a block of code.</p>
<p>For example, in the video that follows I talk through the steps I recently explained to another blogger for inserting code into a php file on a WordPress blog to display a Digg icon. The video is short and to the point.</p>
<p><a href="javascript:lynkVideoPop(719,'1207916736');" class="lynkvp"><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/04/screenflow9a.png" /></a></p>
<p>The same idea holds in the next video, no bells or whistles, just a simple description on how to choose a color using the Color Picker application and use the hex value of the selected color to configure style sheet information in an application.</p>
<p><a href="javascript:lynkVideoPop(719,'1207916761');" class="lynkvp"><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/04/screenflow9b.png" /></a></p>
<p>If you are already familiar with creating screencasts, or would like to give it a go, you owe it to yourself to  download a <a href="http://www.varasoftware.com/products/screenflow/download.html" target="_blank">free trial</a> of ScreenFlow.</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/tools-utilities/screenflow-part-3.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Screencasts with ScreenFlow &#8211; Part 2</title>
		<link>http://MacDeveloperTips.com/tools-utilities/screenflow-part-2.html</link>
		<comments>http://MacDeveloperTips.com/tools-utilities/screenflow-part-2.html#comments</comments>
		<pubDate>Wed, 09 Apr 2008 02:45:13 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Tools/Utilities]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[screenflow]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/general/screenflow-part-2.html</guid>
		<description><![CDATA[This is the second post in a series that demonstrates the features of ScreenFlow, a powerful application for creating screencasts. ]]></description>
			<content:encoded><![CDATA[<p>I apologize this video is no longer available. I had a system crash on my web host and was unable to recover the video. To make matters more frustrating I no longer have a copy of ScreenFlow to recreate the video.</p>
<p>Apologies for any inconvenience.</p>
<p>John</p>
<div style="height: 1px; width: 500px; background-color: #000;"></div>
<p>In a <a href="http://macdevelopertips.com/tools-utilities/screenflow-part-1.html" target="_blank">previous post</a> on using <a href="http://www.varasoftware.com/products/screenflow/" target="_blank">ScreenFlow</a>, I demonstrated some of the basics of this unique application for creating screencasts. What follows is another video demonstrating how to record video separately from audio. Unless you&#8217;ve spent time creating a screencast, and have experienced the challenges that come with the same, you might not fully appreciate the value of this feature.</p>
<p>Let me put it this way, I often find it challenging to synchronize all the moving parts, from typing code, clicking the mouse to verbally describing what I&#8217;m trying to demonstrate, and if there&#8217;s a means to simplify the process, I&#8217;m there.<img src="http://macdevelopertips.com/wp-content/uploads/2008/04/screenflowLogo.jpg" align="left" height="110" width="110" /></p>
<p>There are tools available for recording video and audio separately, and mixing the two into a final product. However, ScreenFlow offers these capabilities in one tool.</p>
<p>Have a look at the video below to see how I create an audio recording inside of ScreenFlow and merge this with a video recording:</p>
<p><a href="javascript:lynkVideoPop(719,'1207706473');" class="lynkvp"><img src="/wp-content/uploads/2008/04/screenflow4.png" /></a></p>
<p>In my short time in working with ScreenFlow, I&#8217;ve been impressed with both its ease of use (read, short learning curve) and the powerful and well thought out (and implemented) features to take away some of the pain of creating screencasts.</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/tools-utilities/screenflow-part-2.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Screencasts with ScreenFlow &#8211; Part 1</title>
		<link>http://MacDeveloperTips.com/tools-utilities/screenflow-part-1.html</link>
		<comments>http://MacDeveloperTips.com/tools-utilities/screenflow-part-1.html#comments</comments>
		<pubDate>Tue, 08 Apr 2008 01:18:07 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Tools/Utilities]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[screenflow]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/tools-utilities/screenflow-part-1.html</guid>
		<description><![CDATA[ScreenFlow is an application for creating screencasts. This first post in a series show the basics for creating and editing videos.]]></description>
			<content:encoded><![CDATA[<p>This post is one in a series demonstrating a very intriguing application for creating screencasts, <a href="http://www.varasoftware.com/products/screenflow/" target="_blank">ScreenFlow</a>. If you are currently creating screencasts on a Mac, or have considered doing so, you definitely need to give this a look.</p>
<p><img src="http://macdevelopertips.com/wp-content/uploads/2008/04/screenflowLogo.jpg" align="left" height="110" width="110" />In this post I will create three short screencasts, all created using ScreenFlow. The first will be a simple demonstration of a coding trick which is handy when working with column blocks in <a href="http://macromates.com/" target="_blank">TextMate</a>. The second will show how to make various modifications to the first video from within ScreenFlow, and the final will show the end result.</p>
<p>When watching the first video, understand that we haven&#8217;t done any editing as of yet, so the code/text is rather hard to read. This is even more pronounced in the second video where I demonstrate ScreenFlow to capture a video showing various editing features of ScreenFlow (it&#8217;s not as confusing as it sounds). Stick with me on this and I&#8217;ll make it right (click the image below to watch the first video)..</p>
<p><a href="javascript:lynkVideoPop(719,'1207615375');" class="lynkvp"><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/04/screenflow1.png" /></a></p>
<p>Now that we&#8217;ve captured the demonstration of the TextMate trick, we need to dive into some of the editing features of ScreenFlow to make the text more readable (click the image below to watch the video):</p>
<p><a href="javascript:lynkVideoPop(719,'1207615405');" class="lynkvp"><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/04/screenflow2.png" /></a></p>
<p>And with the changes complete, we can now see the final result (you know the drill):</p>
<p><a href="javascript:lynkVideoPop(719,'1207616510');" class="lynkvp"><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/04/screenflow3.png" /></a></p>
<p>Join me in the next post where I&#8217;ll demonstrate some additional features of ScreenFlow including how to record video separately from audio. If you&#8217;ve ever created a screencast, you&#8217;ll truly appreciate this feature!</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/tools-utilities/screenflow-part-1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetBeans 6.1, Ruby and AppleScript</title>
		<link>http://MacDeveloperTips.com/tools-utilities/netbeans-61-ruby-and-applescript.html</link>
		<comments>http://MacDeveloperTips.com/tools-utilities/netbeans-61-ruby-and-applescript.html#comments</comments>
		<pubDate>Wed, 02 Apr 2008 12:21:21 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Tools/Utilities]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[rb-appscript]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[screencast]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/tools-utilities/netbeans-61-ruby-and-applescript.html</guid>
		<description><![CDATA[Screencast to demonstrate using NetBeans, Ruby and rb-appscript together to control scriptable applications on Mac OS X.]]></description>
			<content:encoded><![CDATA[<p>What do NetBeans,  Ruby and AppleScript have in common? There&#8217;s a circular definition of sorts to explain&#8230;to start, all are tools available to developers working on Mac. Next, NetBeans has full support for creating, debugging and packaging Ruby code. And finally, Ruby (with the right tools in place) can be used within NetBeans to control scriptable applications on a Mac, something which is typically accomplished using AppleScript.</p>
<p><a href="http://www.netbeans.org/community/releases/61/" target="_blank"><img src="/wp-content/uploads/2008/04/netbeansBeta-1.gif" align="left" height="115" width="123" /></a>In this post I&#8217;ll describe more about how all these tools come together to provide an interesting approach for using Ruby as an alternative to AppleScript, and working with NetBeans as the development environment for writing and building those same applications.</p>
<p>The screencast that follows will walk you through all the steps to download the tools you&#8217;ll need, build from source a scripting bridge  (<a href="http://rb-appscript.rubyforge.org/" target="_blank">rb-appscript</a>) for Ruby to AppleScript, and finally, create several short examples to demonstrate how you can use Ruby, from within <a href="http://www.netbeans.org" target="_blank">NetBeans</a> to control <a href="http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptX/Concepts/scriptable_apps.html#//apple_ref/doc/uid/TP40001569-BABEBGCF" target="_blank">scriptable applications</a>.</p>
<p><a href="javascript:lynkVideoPop(719,'1207055473');" class="lynkvp"><img src="/wp-content/uploads/2008/04/netbeansBeta-2.png" /></a></p>
<p>For more information, follow these links:</p>
<ul>
<li><a href="http://netbeans.org" target="_blank">NetBeans</a></li>
<li><a href="http://appscript.sourceforge.net/rb-appscript/index.html" target="_blank">rb-appscript</a></li>
<li><a href="http://www.apple.com/applescript/" target="_blank">AppleScript</a></li>
</ul>
<p>If you are interested to learn more about using Ruby as an alternative to AppleScript, I&#8217;ve written as series of posts you can find here: <a href="http://macdevelopertips.com/ruby/ruby-an-applescript-alternative-part-1.html" target="_blank">Part 1</a>, <a href="http://macdevelopertips.com/ruby/ruby-an-applescript-alternative-part-2.html" target="_blank">Part 2</a>, <a href="http://macdevelopertips.com/ruby/ruby-an-applescript-alternative-part-3.html" target="_blank">Part 3</a>, <a href="http://macdevelopertips.com/ruby/ruby-an-applescript-alternative-part-4.html" target="_blank">Part 4</a>, <a href="http://macdevelopertips.com/ruby/ruby-as-applescript-alternative-part-5.html" target="_blank">Part 5</a>, <a href="http://macdevelopertips.com/tools-utilities/netbeans-61-ruby-and-applescript.html" target="_blank">Part 6</a></p>
<p>If you write an interesting application in NetBeans, using Ruby and rb-appscript, <a href="http://macdevelopertips.com/?page_id=91" target="_blank">drop me a note</a>, as I&#8217;d like to  post several good examples showing the interaction of all these tools.</p>
<p>As an aside, NetBeans is sponsoring a blogging contest for the 6.1 Beta. If you are interested in learning more, visit the <a href="http://www.netbeans.org/competition/blog-contest.html" target="_blank">NetBeans Blogging Contest</a>. And who knows, you could walk away with one of ten $500 American Express gift certificates!</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/tools-utilities/netbeans-61-ruby-and-applescript.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ScreenSteps &#8211; Part 2</title>
		<link>http://MacDeveloperTips.com/tools-utilities/screensteps-part-2.html</link>
		<comments>http://MacDeveloperTips.com/tools-utilities/screensteps-part-2.html#comments</comments>
		<pubDate>Mon, 31 Mar 2008 12:03:43 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Tools/Utilities]]></category>
		<category><![CDATA[screensteps]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/tools-utilities/screensteps-part-2.html</guid>
		<description><![CDATA[Revisiting where I left off in ScreenSteps Part 1, I had an interest to try the export to blog feature, for obvious reasons. When you chose to export to a blog, the content you create in ScreenSteps is uploaded to ScreenStepsLive, a hosting service specifically created for ScreenStep applications. Once the application content is uploaded, [...]]]></description>
			<content:encoded><![CDATA[<p id="LessonContent">Revisiting where I left off in <a href="http://macdevelopertips.com/tools-utilities/screensteps-evaluation.html" target="_blank">ScreenSteps Part 1</a>, I had an interest to try the export to blog feature, for obvious reasons. When you chose to export to a blog, the content you create in ScreenSteps is uploaded to <a href="http://ScreenStepsLive.com" target="_blank">ScreenStepsLive</a>, a hosting service specifically created for ScreenStep applications. Once the application content is uploaded, a block of HTML is generated, which you can then copy into a blog.</p>
<p id="LessonContent">In order to make all this happen you need to create a ScreenStepsLive account, which ranges from free up to $149 per month, with the variations being number of users who can post lessons, storage space limitations, etc.</p>
<p id="LessonContent">To see how the content would look when posting to this blog, I generated a ScreenSteps lesson, created an account on ScreenStepsLive and exported to each of the supported formats. The results are all shown below:</p>
<hr color="#00008b" size="3" />
<p id="LessonContent">&nbsp;</p>
<p class="LessonHeader">&nbsp;</p>
<h2 class="LessonTitle" style="font-size: 24px">MacDeveloperTips Email Subscription</h2>
<p class="LessonSummary">Step by step process to subscribe by email to MacDeveloperTips.com</p>
<p class="LessonStep top">&nbsp;</p>
<h3 class="StepTitle" style="font-size: 20px">Step 1 &#8211; Browse to MacDeveloperTips.com</h3>
<p class="StepImage" style="margin: 10px 0px"> <img src="http://s3.amazonaws.com/screensteps_live/step_images/MacDeveloperTips/746/media_1206397101187.jpg" height="110" width="462" /></p>
<p class="LessonStep top">&nbsp;</p>
<h3 class="StepTitle" style="font-size: 20px">Step 2 &#8211; Click on the &#8216;Tips by Email&#8217; option</h3>
<p class="StepImage" style="margin: 10px 0px"> <img src="http://s3.amazonaws.com/screensteps_live/step_images/MacDeveloperTips/746/media_1206397194863.jpg" height="188" width="208" /></p>
<p class="LessonStep top">&nbsp;</p>
<h3 class="StepTitle" style="font-size: 20px">Step 3- Enter your email address and verification message and click Complete Subscription Request</h3>
<p class="StepImage" style="margin: 10px 0px"> <img src="http://s3.amazonaws.com/screensteps_live/step_images/MacDeveloperTips/746/media_1206397301509.jpg" height="323" width="503" /></p>
<p class="LessonStep top">&nbsp;</p>
<h3 class="StepTitle" style="font-size: 20px">Step 4 &#8211; Check your email for a subscription request confirmation</h3>
<p class="StepImage" style="margin: 10px 0px"> <img src="http://s3.amazonaws.com/screensteps_live/step_images/MacDeveloperTips/746/media_1206397379884.jpg" height="225" width="502" /></p>
<p>Click on the link in the confirmation email and you&#8217;re good to go!</p>
<hr color="#00008b"/>
As far as ease of use, I will say the copy/paste approach for use within a blog couldn&#8217;t be much easier, and I anticipate that the options for noodling with the content layout will continue to evolve with new releases of the software. ScreenSteps is an intriguing application for creating visual step-by-step guides. </p>
<p>Give it a try next time you are called upon from your non-techie friends or family for computer support :)</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/tools-utilities/screensteps-part-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy Finder Path to Clipboard &#8211; Tip 2</title>
		<link>http://MacDeveloperTips.com/applescript/copy-finder-path-to-clipboard-tip-2.html</link>
		<comments>http://MacDeveloperTips.com/applescript/copy-finder-path-to-clipboard-tip-2.html#comments</comments>
		<pubDate>Fri, 28 Mar 2008 12:03:59 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Tools/Utilities]]></category>
		<category><![CDATA[clipboard]]></category>
		<category><![CDATA[finder]]></category>

		<guid isPermaLink="false">http://MacDeveloperTips.com/applescript/copy-finder-path-to-clipboard-tip-2.html</guid>
		<description><![CDATA[Copy path from Finder to clipboard, including drag and drop support for folders within the Finder window.]]></description>
			<content:encoded><![CDATA[<p><a href="http://macdevelopertips.com/applescript/copy-finder-path-to-clipboard-tip-1.html" target="_blank">Yesterday</a> I wrote a short AppleScript application that copied the current path of the Finder window to the clipboard. A rather unassuming, yet handy application. One downside to this application is that if you want the path of a folder selected in Finder, you would have to double-click on the folder to change the Finder path to that folder location, and then you could engage the AppleSscript application to copy the path.</p>
<p>For example, in the figure below clicking the Script Editor icon that we created in yesterday&#8217;s post (to the right of the terminal window with green arrow) will copy the path <em><font color="#800000">/Applications/</font></em> to the clipboard. However, what if you intention was to copy the path of the highlighted folder, that is,  <font color="#800000"><em>/Applications/Utilities/Java/</em></font> ?</p>
<p><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/03/copypath1.png" /></p>
<p>I&#8217;ve reworked the original example to add support for dragging a folder onto the icon and also moved the code for displaying a dialog box when an error occurs into a subroutine. Take a look at updated application below:</p>
<p><img src="/images/script-editor.png" alt="Script Editor" /> <a href="applescript://com.apple.scripteditor?action=new&amp;script=--%20When%20clicking%20on%20the%20icon%0Atry%0A%09tell%20application%20%22Finder%22%0A%09%09set%20currentPath%20to%20%28POSIX%20path%20of%20%28target%20of%20front%20window%20as%20alias%29%29%0A%09%09set%20the%20clipboard%20to%20currentPath%0A%09end%20tell%0Aon%20error%0A%09my%20finderErrorMsg%28%29%0Aend%20try%0A%0A--%20When%20dropping%20a%20folder%20onto%20the%20icon%0Aon%20open%20%7BdroppedFolder%7D%0A%09try%0A%09%09tell%20application%20%22Finder%22%0A%09%09%09set%20currentPath%20to%20%28POSIX%20path%20of%20droppedFolder%20as%20text%29%0A%09%09%09set%20the%20clipboard%20to%20currentPath%0A%09%09end%20tell%0A%09on%20error%0A%09%09my%20finderErrorMsg%0A%09end%20try%0Aend%20open%0A%0A--%20Error%20msg%20when%20unable%20to%20copy%20a%20path%20to%20the%20clipboard%0Aon%20finderErrorMsg%28%29%0A%09display%20dialog%20%22Unable%20to%20copy%20a%20path%20to%20the%20clipboard.%20Make%20sure%20Finder%20is%20referencing%20a%20directory%2Ffolder%20within%20the%20file%20system.%22%20buttons%20%7B%22Ok%22%7D%20with%20icon%20caution%20with%20title%20%22Error%22%0Aend%20finderErrorMsg">Click here</a> to paste the code below into the Script Editor</p>
<pre>
-- When clicking on the icon
try
  tell application "Finder"
    set currentPath to (POSIX path of (target of front window as alias))
    set the clipboard to currentPath
  end tell
on error
  my finderErrorMsg()
end try

-- When dropping a folder onto the icon
on open {droppedFolder}
  try
    tell application "Finder"
      set the currentPath to (POSIX path of droppedFolder as text)
      set the clipboard to currentPath
    end tell
  on error
    my finderErrorMsg
  end try
end open

-- Error msg when unable to copy a path to the clipboard
on finderErrorMsg()
  display dialog "Unable to copy a path to the clipboard.
                      Make sure Finder is referencing a directory/folder
                      within the file system."
                      buttons {"Ok"} with icon caution with title "Error"
end finderErrorMsg</pre>
<p>With the addition of the <font color="#800000"><em>on open</em></font> reference (line 12) you can now drag/drop a folder in Finder onto the application icon and its path will be copied to the clipboard. Before you can use the script, you will need to save the AppleScript code as an application and drag the script onto the toolbar (remove any previous version of the program by right clicking and selecting &#8216;Remove Item&#8217;).</p>
<p>As a quick debugging tip, you can add a dialog box as shown below to display the path that was copied into the clipboard:</p>
<pre>
tell application "Finder"
  set currentPath to (POSIX path of (target of front window as text))
  set the clipboard to currentPath
  display dialog currentPath buttons {"ok"}
end tell
...</pre>
<p>Now you can view the clipboard contents (through the dialog box) which makes the debugging process a little easier should you decide to tweak this application.</p>
<p><img src="http://MacDeveloperTips.com/wp-content/uploads/2008/03/copypath2.png" /></p>
<p>Another good example of the power of scripting on a Mac.</p>
]]></content:encoded>
			<wfw:commentRss>http://MacDeveloperTips.com/applescript/copy-finder-path-to-clipboard-tip-2.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
