Tag Archives: Code for you

A few random AppleScript snippets

I was just writing an AppleScript to look up words on the excellent NinjaWords and decided to post it in case someone else needs something similar. Since one snippet of AppleScript is not a very meaty post, I’ll throw in a couple extra.
Look up word on NinjaWords
Select a word and copy it to the clipboard. [...]

Set up your own lifestream using FriendFeed and… Dirty hacks

When Iceland went bust and started selling .is domains I grabbed martin.is. Of course I did. That’s the kind of guy I am. Even as I swiped that credit card (and by “swipe” I mean “typed in all my info into the appropriate boxes.”) I knew I had no idea what I was going to [...]

GeekTool Desktop

I’ve been a Solid Grey Desktop man for ten or twelve years, but GeekTool; a tool that lets you add all sorts of more or less useful info to your desktop, made me spring a pretty colorful theme today (click the image…). Not in the least because it requires some fiddlin’ around in the terminal [...]

Capture key sequences in ActionScript 3. AKA The Konami Comeback.

Lately the internet has had a wave of sites using the cherished Konami Cheatcode to reveal easter eggs or similar functionality in the site or app.
I wrote a (crappy but working) class to implement such functionality in ActionScript about a year ago here.
I decided to polish it up a bit for the benefit of myself [...]

Migrate from Things to The Hit List

Edit: I updated the app to work on Snow Leopard. Go here to get the app or source code.
So this all started out with me pining for the release of the fabled iPhone version of The Hit List. I started out just wanting to create a script that would let me use Things Touch to [...]

Adobe Updodger

Do you use any Adobe products? Tell me if this sounds familiar: “Oh hai! I need to update some totally unrelated stuff on your machine! You know, some camera raw stuff or InDesign whatchamacallits, so I’m just going to force you to quit all your browsers, because lordy lordy who knows what might happen if [...]

Twitter, Twitter, Twitter

Update!! Yahoo did the same dick move of cockblocking Flash. :/ To remedy this the URLRequest on line 80 had to be changed. If your project used to work but doesn’t anymore; Try this. If this is your first time here; Ignore this message.

Ad infinitum, ad nauseum.
So, I saw that I’m still getting some traffic [...]

Some Path Finder AppleScripts

How’s that for a TitleCased title?
So I’ve been checking out Path Finder again. The thing with Path Finder is that it’s very nearly awesome, but there are a few things that bug the hell out of me. I may or may not come back to the most irritating shortcomings in a later post, but I’m [...]

Clean flashlog.txt with a keystroke

Scenario: You’re working with the Flex SDK and you’re tracing messages to the Terminal via flashlog.txt. The damn logfile has heaps of clutter in it from the last project you were working on, and you want to clean it up.
Solution: Save this snippet and assign it a Quicksilver hotkey:

try
do shell script [...]

ActionScript 3 URL validator class

Fairly robust AS3 utility class for evaluating, parsing and tagging URLs.