njr 2.0 5.3.2005



Last week I expressed my wish it were easier to post screenshots in Flickr with 1001. Today, I saw Bill Bumgarner’s pdf2png script which did a big chunk of what I needed, and did something about finishing the rest.

Download 1001Screenshot 1.0 (sorry, no fancy icon). Open the application; you’re now in the window-selection mode as if you hit command-shift-4, space. Click a window, or hit the space bar and drag over a region. In a few seconds, you should see a “Screenshot 1” PNG file on your desktop and 1001 will open with the image added to the upload window.

Needless to say, I’ll be posting more screenshots in the future now it’s so easy to do so.

The script’s a bit ugly; more of it could have been written in Python if I had wrapped some bits of Carbon/CF that weren’t wrapped (FNNotify and LSOpenFrom*Spec); instead, I just use osascript to talk to the Finder and an embedded copy of launch to open 1001. Thanks as usual to py2app for making packaging Python apps trivial on the Mac; no thanks to the appscript installer for breaking permissions everywhere it touched.

Update: Sorry for the broken link. Fixed. I’m usually better at verify such things, but there was a really bizarre SSH forwarding issue I ran into that made this post quite a nightmare... 15:45:36 | comment [] | trackback [] #

March 2005
  1 2 3 4 5 6
7 8 910111213
Feb 2005 Apr 2005

Computer architecture, medicine, usability, Mac OS X, Python, Cocoa and hiptop development, and my life.

© 2005, Nicholas Riley