Bits of this used to be on a blog called Gadfly Mind; I've now merged the whole kaboodle together.

Taking Screenshots from the Command Line in OS X

March 9th, 2010

camera.pngI was so impressed with this I had to share. I was looking for a way of taking screen shots of a user taking a screen shot. Yes, that’s a bit meta.

Basically, I wanted to grab some screen shots for a tutorial piece on how to capture screen shots on a Mac. So I wanted to shoot some screen shots which would actually capture pictures of the different cursor shapes you get — the cross-hairs, the little camera, and so on — while you’re capturing.

As is often the case on the Mac, this seemingly difficult task turned out to be dead easy. There’s a full command line interface for capturing screenshots that comes with OS X — I guess it may be what the GUI uses “under the hood” — and not only is it easy to use, but you can also capture cursors with it.

The command is “screencapture”, and it comes with many fine options, as you can tell if you run it with screencapture -h. There’s a full manpage available too, i.e. man screencapture.

Here’s the example I used to grab this shot:

screencapture -T5 -C test.png

The -T5 delays for five seconds — giving me time to trigger the GUI’s built-in screen shot facility and get the little camera cursor up on the screen — the -C tells it to capture the cursor as well as the screen, and the file name tells it where to save. If you have two screens and want to capture them both, just provide both file names.

There’s a ton of other options for kicking off different capture methods, changing the output file format, and so on. And this is all delightfully scriptable, of course. I’m sure this’ll come in handy for me at some point in the future, so I figured it was worth blogging in case it gives anyone else some ideas…

Charity Appeal…

March 2nd, 2010

If you don’t follow my other blog, (a) you’ll think I never blog at all, and (b) you’ll probably not know that I’m running the Bristol 10K in May.

If you know me, or are simple feeling particularly charitable, I’d love it if you could nip over to my Just Giving page and sponsor me :)

Thanks!

Panasonic Lumix DMC-FP8 Camera Review

October 25th, 2009

Panasonic Lumix DMC-FP8Today I review the new Panasonic Lumix DMC-FP8. NB: This is a long post, but I prefer putting everything on one page to forcing people to click on “next” links all the time.

Note: The FP8 has now been superseded by the FP1, FP2 and FP3 cameras, which are similar, but with a higher megapixel count, and — more important to me — a sliding lens cover. The FP3 also has a touch-to-focus touchscreen display, which should be interesting…
Read the rest of this entry »

Snow Leopard Blues

September 3rd, 2009

I’ve not upgraded to Snow Leopard. And I’m not sure whether I will, anytime soon. This is unusual for me. I’m normally a bleeding-edge, early adopter type. I’ll happily install the .0 release of Apple things the day after they come out.

So, according to the marketing hype, Snow Leopard should be a no-brainer for me. It’s better, it’s faster, and it’s cheap! It’s not as cheap in the UK, of course, as it is in the US; these things never bloody are, but that’s beside the point.

Until you start doing a little bit of research that goes beyond the marketing hype, that is. The handy wikidot-hosted Snow Leopard Compatibility page points out a lot of flies in my potential ointment.

I generally keep fairly up-to-date with my apps, especially those that offer in-app automatic updates, or anything I use regularly. Nevertheless, a quick scout through the list tells me that I’m likely to have problems with Parallels, Quicksilver, Perian, Flip4Mac, Caffeine, Dropbox, Evernote, Google Gears, Growl, Lightroom, Magical, RapidWeaver, XMarks for Safari, and Google Sketchup.

And that’s just the applications I’ve used within the last couple of weeks. I use many of these daily.

And when I say “problems”, this ranges from “minor issues” to “Just Plain Won’t Work”. And it looks like the issues can be pretty severe, if Merlin Mann’s recent experiences are anything to go by. (More on Merlin’s irritations here).

Looking deeper into compatibility, it seems that Parallels don’t have any plans to fix Parallels 3 so it works in Snow Leopard. They’ve got a “special offer” on this month to encourage upgrades, but that’s still £24.99, plus an extra £5.62 for the “Extended Download for Parallels Desktop 4.0″ that they kindly auto-add to your shopping cart (including 19% sales tax for UK customers buying in pounds from their UK site, for some unknown reason.) So that’s £30.61, more than the cost of Snow Leopard itself. For something I use about once every two months, when I need to test a web page in Internet Explorer. Looks like I’ll have to ditch that and go dual-boot instead.

Add to this the new annoyances that I can see creeping in — I see that useful things in QuickTime Pro have been disappeared from QuickTime X (I used the “Open Image Sequence” feature to create an animation just the other day), meaning you’ve got to have them both around. This reminds me of the irritating days of the new iMovie, where you’d have to do half your work in one and the other half in the other, depending on what feature you wanted to use at the time. Plus I’ve seen people disliking what they’ve done with Exposé (I don’t think I’ll like it all neatly aligned to a grid, either) and a few additional pointless animations.

And what’s on the plus side? Erm. Well, I’m not quite sure. There’s lots of things on the feature list, but none of them are particularly impressive. Okay, having 7Gb of disk space back will be nice, but only when I’ve used up the other few hundred gigabytes I’ve got spare. Exchange support? Sounds like an extra quarter gigabyte they could have shaved off for me. Safari 4? Already got it. And 64 bits? Something tells me my Core Duo iMac won’t be taking much advantage of that…

It looks like Rogue Amoeba’s venerable SoundSource menubar app has been replaced by built-in functionality (those with Snow Leopard, try Option-clicking on the speaker icon in the menubar!), but that’s the only plus I can see, and it doesn’t actually gain me anything. SoundSource is free.

It seems to be all flies and no ointment. So, unlike last time, I’ve managed to resist pushing the “One-Day 1-Click” button on Amazon for several days after an OS X release. And I think I’m going to keep on resisting for some time.

Apologies for the Inconvenience

August 26th, 2009

Sorry to anyone who was just troubled by an odd post here; I was in the middle of fiddling with Technorati and forgot to delete a claim post.

It’s been a while since I blogged properly here. I’ve mostly been concentrating on less geeky areas in my life, like photography and getting a bit fitter. In fact, most of my recent blogging has been about my attempt to get fit using my friend Ben’s iPhone App, Get Running, and I’m doing that over on Matt Gets Running.

I’m going to make an effort to post a bit more here, though, maybe random posts of some of the design work I’m doing, maybe a bit about all the tools and habits I use in my personal approach to Getting Things Done, which someone mentioned might be interesting. Or maybe just a bit about how I use Adobe’s Lightroom, which might be interesting to anyone interested in my workflow. Not that I claim that my workflow’s particularly good, but it’s interesting to see how different people use Lightroom in different ways.

So, yes, just to let you know I’m still alive, and that there may be a bit more blogging coming your way. Any suggestions for subjects welcome!

Powered by Web Design Company Plugins