Posts tagged ‘programming’

Better window screenshots

For some time now, I’ve been using a homemade utility, snapflickr, for taking screenshots and automatically uploading them to Flickr. It worked really well for most screenshots, but there were some, like this one from yesterday’s post, that just don’t look right because the desktop background border is either too thin or uneven or both.…


Scripting your scripting

A couple of days ago, Rob Trew tweeted a link to a shell script he wrote that prints out an emoji clock face based on the time it’s given. 🕟.shSimple bash .sh gets emoji clockface (stdout|clipboard) with specified time (to nearest preceding half hour)github.com/RobTrew/txtque…— ComplexPoint (@ComplexPoint) Jul 22 2014 10:31 AM It sounded like a…


Evaluating LaTeX with Eddie and Alpha

If you work in LaTeX and write numerical equations,1 this post by Eddie Smith will cause all sorts of bells to go off in your head. He shows how Wolfram Alpha will evaluate an expression given to it in LaTeX form. In other words, you can paste something like this into the Alpha expression field…


Tweets with multiple photos

In last night’s post, I embedded a John Gruber tweet that included two photos. Original iPhone, snapped with 5S, and vice versa. The difference 7 years makes — John Gruber (@gruber) Jun 29 2014 5:18 PM To do so, I had to modify my blackbirdpy script for embedding tweets. It now takes advantage of Twitter’s…


Blogging from BBEdit, redux

I’ve been having blog problems the past couple of weeks. My script for publishing from BBEdit has been working fine when publishing new posts, but it’s been throwing errors when updating posts after editing. I’m not sure what has changed. I did update my WordPress installation recently, but I’m also suspicious of new configurations my…


Quick invoicing emails with MailMate

I’m not ready to write a post on the positives and negatives (mostly positives) of MailMate, but I am ready to share a script that automates one of my common emailing tasks. The invoices I send to clients are PDFs that I attach to a short email. The body of the email is boilerplate: here’s…


Mapping photos with Pythonista 1.5

This tweet from Ole Zorn on Saturday took a load off my mind: Pythonista 1.5 has passed Apple’s review – release on Monday, more details soon. \o/— Ole Zorn (@olemoritz) Jun 14 2014 6:27 AM First, I was relieved to see that Ole had dodged the App Store’s threat to remove Pythonista. Second, I could…


withTitle

The day after the WWDC keynote, after I’d skimmed the Swift documentation, I learned from this post by Clark Goble and this tweet by Allen MacKenzie that Yosemite was going to have a new scripting language. Or maybe an old scripting language resurrected. Either way, JavaScript is going to take a spot alongside AppleScript as…


Images on the clipboard via script

Last night I had an idea for improving my snapflickr screen capture script. Although, as its name implies, snapflickr was written to upload screen snapshots to my Flickr account, I often use it to create local files that I edit in Acorn before uploading. My bright idea was to have snapflickr put the image on…


Go to history

Now that everybody’s had their say on Apple’s goto fail bug and no one cares anymore, I thought I’d chime in. Specifically, I want to push back a bit against a couple of things said at the end of last week’s ATP episode. Both John and Marco defended Apple’s use of goto, arguing that it’s…