Mac AppleScript Finder - How to put the path of the current Finder window on the clipboard

Mac OS X FAQ: How can I get access to the full path of the current Finder window? That is, when I'm looking at a Finder window in a directory like /Users/Al/Foo/Bar, how can I easily put that directory path on the clipboard so I can use it in other applications?

As a Mac OS/X newbie I couldn't find a good way to do this, so I wrote an AppleScript (script) to do it for me. Here is the script:

Mac Finder and Terminal: Open a Mac Terminal window in the current Finder folder

Mac Terminal Finder tip: How to open a Mac Terminal window in the current Mac Finder folder.

As a Mac OS X newbie, I don't know if there is a better way to do this, but to open a Mac Terminal window from the current Mac Finder folder, I wrote an AppleScript script. I'm new to AppleScript also, so the script is pretty simple. Here's the code:

An Ant build script for web applications

Ant web build script FAQ: Can you share an example Ant build script for a web application?

Sure, here's a sample Ant build script for a Java web application. I've included other example Ant scripts for Java Swing/JFC/GUI applications on this website, but this one demonstrates how to use Ant to build a web app instead.

A sample ant build script for a standalone Java application

Ant Java build scripts: Can you share an example of an Ant build script for a standalone Java application?

This is a sample Ant build script for a Java application I wrote. It is a GUI/Swing application named "AlwaysOnTop". I include it here because I'm a big believer in learning by example, and maybe this Ant script can help you create an Ant script for your own applications.

Sat, July 10, 2004 (Creating a sed script to convert HTML to LaTeX)

My obsessive use of LaTeX continues. Here's a link to a sed script I'm creating to convert HTML to LaTeX.

I actually have a reason to do this. During a requirements phase I'm doing a lot of work with HTML prototypes, but the actual specification is being created using LaTeX, and I want to incorporate the HTML prototypes in the LaTeX document. Hence this conversion effort. I know that it can never fully succeed, but I think I'll be pretty happy with 90-95% success here.


Perl CGI environment variables example

Here's a sample Perl CGI program I wrote that prints out all of the environment variables it knows. I've found this program to be very useful when first installing a web server, or when debugging a problem with a web server or new environment.

Perl CGI environment variables - example program

Here's the code:

Java compile example - A Linux shell script

A Java compile example: How to compile a Java program from a Unix/Linux shell script.

From time to time circumstances come up where I don't have Ant or an Ant-based project to compile my Java programs. On those occasions (which are very rare these days), I typically use a Linux shell script to compile my Java classes. I thought I'd share this "java compile" shell script here today.

Syndicate content