Archive for the 'Tools/Utilities' Category

May 06 2008

Converting Images Types

Published by john under Tools/Utilities

I continue to find the Preview application to be a handy little tool. It’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’ve look to the Previewer to help me out, it did.

The first time this came about I simply needed to resize an image to post on this blog - from the Tools menu, click Adjust Size and save the file, that’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’s done - 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.

By no means a full-fledged image editing program, and never intended to be, Previewer is still much more than its name suggests.

Technorati Tags: ,

No responses yet

Apr 11 2008

Screencasts with ScreenFlow - Part 3

Published by john under Tools/Utilities

I’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, rather, videos that have a very limited lifespan, as in hours.

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.

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.

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.

If you are already familiar with creating screencasts, or would like to give it a go, you owe it to yourself to download a free trial of ScreenFlow.

Technorati Tags: ,

2 responses so far

Apr 08 2008

Screencasts with ScreenFlow - Part 2

Published by john under Tools/Utilities

In a previous post on using ScreenFlow, 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’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.

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’m trying to demonstrate, and if there’s a means to simplify the process, I’m there.

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.

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:

In my short time in working with ScreenFlow, I’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.

Technorati Tags: ,

No responses yet

Apr 07 2008

Screencasts with ScreenFlow - Part 1

Published by john under Tools/Utilities

This post is one in a series demonstrating a very intriguing application for creating screencasts, ScreenFlow. If you are currently creating screencasts on a Mac, or have considered doing so, you definitely need to give this a look.

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 TextMate. The second will show how to make various modifications to the first video from within ScreenFlow, and the final will show the end result.

When watching the first video, understand that we haven’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’s not as confusing as it sounds). Stick with me on this and I’ll make it right (click the image below to watch the first video)..

Now that we’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):

And with the changes complete, we can now see the final result (you know the drill):

Join me in the next post where I’ll demonstrate some additional features of ScreenFlow including how to record video separately from audio. If you’ve ever created a screencast, you’ll truly appreciate this feature!

Technorati Tags: , ,

No responses yet

Apr 02 2008

NetBeans 6.1, Ruby and AppleScript

Published by john under Tools/Utilities

What do NetBeans, Ruby and AppleScript have in common? There’s a circular definition of sorts to explain…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.

In this post I’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.

The screencast that follows will walk you through all the steps to download the tools you’ll need, build from source a scripting bridge (rb-appscript) for Ruby to AppleScript, and finally, create several short examples to demonstrate how you can use Ruby, from within NetBeans to control scriptable applications.

For more information, follow these links:

If you are interested to learn more about using Ruby as an alternative to AppleScript, I’ve written as series of posts you can find here: Part 1, Part 2, Part 3, Part 4, Part 5, Part 6

If you write an interesting application in NetBeans, using Ruby and rb-appscript, drop me a note, as I’d like to post several good examples showing the interaction of all these tools.

As an aside, NetBeans is sponsoring a blogging contest for the 6.1 Beta. If you are interested in learning more, visit the NetBeans Blogging Contest. And who knows, you could walk away with one of ten $500 American Express gift certificates!

Technorati Tags: , , , ,

No responses yet

Mar 31 2008

ScreenSteps - Part 2

Published by john under Tools/Utilities

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, a block of HTML is generated, which you can then copy into a blog.

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.

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:


 

 

MacDeveloperTips Email Subscription

Step by step process to subscribe by email to MacDeveloperTips.com

 

Step 1 - Browse to MacDeveloperTips.com

 

Step 2 - Click on the ‘Tips by Email’ option

 

Step 3- Enter your email address and verification message and click Complete Subscription Request

 

Step 4 - Check your email for a subscription request confirmation

Click on the link in the confirmation email and you’re good to go!


As far as ease of use, I will say the copy/paste approach for use within a blog couldn’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.

Give it a try next time you are called upon from your non-techie friends or family for computer support :)

Technorati Tags:

No responses yet

Mar 28 2008

Copy Finder Path to Clipboard - Tip 2

Published by john under AppleScript, System, Tools/Utilities

Yesterday 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.

For example, in the figure below clicking the Script Editor icon that we created in yesterday’s post (to the right of the terminal window with green arrow) will copy the path /Applications/ to the clipboard. However, what if you intention was to copy the path of the highlighted folder, that is, /Applications/Utilities/Java/ ?

I’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:

Script Editor Click here to paste the code below into the Script Editor

-- 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

With the addition of the on open 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 ‘Remove Item’).

As a quick debugging tip, you can add a dialog box as shown below to display the path that was copied into the clipboard:

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
...

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.

Another good example of the power of scripting on a Mac.

Technorati Tags: ,

No responses yet

Next »