Right Now

⏳ Waiting for the APIs in the Cloud for what's going on right now ...

(Mostly) UNIX Quotes

Various quotes, mostly UNIX related, which I've accrued over the years from various sources.

Well my terminal's locked up and I ain't got any Mail And I can't recall the last time that my program didn't fail I've got stacks in my structs, I've got arrays in my queues I've got those: Segmentation violation -- Core dumped blues.

Running Shell Scripts With AppleScript

While I was playing with AppleScript earlier this week I wanted to run a shell script I'd written from within Finder rather than from a shell prompt in Terminal.app.

On Windows I tend to write scripts to run under Cygwin and then write a wrapper batch file to run the script under the control of Cygwin's bash executable.

Turns out the AppleScript solution is identical in principal and is as simple as

do shell script "/full/path/to/shell/script"

You may need to adjust the path to the script dependent upon whether the directory where your script resides is in your $PATH or not.

Mounting Network Volumes With AppleScript

One of my standard lunchtime reading web sites started me off on this; The Unofficial Apple Weblog got me reading an article on PC Magazine's site about Argh! moments. That sort of moment when you try to do something really simple on OS X but find it isn't. In this case, Robyn Peterson's struggle to mount a network volume on login struck a chord. I'd gone down a similar route and come up with an alias to a network volume in my login items, a solution which seems to be well documented after a quick Google search.