Ran across this problem with a friend today. How does one diff the output of two commands without first dumping the output of the two commands to files? I found a solution that seems to work:
diff <(command1) <(command 2)
Suppose we wanted to diff the contents of two directories:
diff <(ls directory1) <(ls directory2)
I ran across scripting for the Mac OSX awhile ago. I finally decided to take a look at it when I decided to play around with Adium’s open source code. The most dominant prescene I observed was Applescript. Applescript is nice and all, but Python is nicer. Scripting OSX applications with Python has been around for a bit. Using the easy to install appscript, scripting can be leveraged by the power of Python and Ruby.