Category Archives: Downloads and Copy-Pasteables

Contains stuff you might want to download.

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: 1234try     do shell [...]

ActionScript 3 URL validator class

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

Open Safari URL in Firefox

Scenario: You are browsing in Safari (because it’s speedier than Firefox) and feel the urge to inspect the site in Firebug or the Web Dev Toolbar. Solution: Save this script and activate it from QuickSilver. 12345678910tell application "Safari"   activate   set theUrl to the URL in document 1 end tell tell application "Firefox"   [...]

Center and resize window with AppleScript

I use a 15″ MacBook Pro that I carry between work and home. At work I have a 30″ Cinema Display which means I can actually have half of the Flash IDE showing at once. Mostly it’s plug and play but every once in a while some app just doesn’t realize that I’ve unplugged the [...]

Better (AS3) imports in TextMate

Summary: In which Martin has concocted a hack to make importing packages in TextMate a wee bit easier. TextMate TextMate TextMate. I might as well make this a pure TextMate blog soon, but I can’t help it. My love for this app is overwhelming. I spend a lot of my time writing ActionScript, and one [...]

Tracing to Firebug in AS3

I realize that I’m late to the party with this, but so far all the examples I’ve seen have been a bit overkill for my needs, so I’m putting this out there in case someone else might have some use for it. Of course, 1trace(); is a Flash developers best friend. Hell, I sometimes feel [...]

TextMate theme-switcher script

Summary: In which Martin ponders solutions on how to quickly switch themes in TextMate and comes up with a half-assed AppleScript / TM Command solution. Jump to the half-assed solution. Edit: As these things usually go I had a bit of a revelation just minutes after posting this post. Completely by accident I typed the [...]

Show / Hide Window

I’ve been using Yojimbo, for a long while now but Eystein has been pestering me to give Evernote a shot. Common for both of these is that you don’t want to spend any time when you’re dropping stuff into them. I want one key that’ll toggle the visibility of the app. I want to hit [...]

OmniFocus clippings from Firefox

Summary: In which Martin has created an AppleScript to remedy Firefox’ poor support for OmniFocus‘ “Send to inbox” hotkey. This is a lengthy post with lots of dreary explanations, so you might want to jump to the finished script if you don’t care about how stuff works. Edit: An alternative version brings up your Quick-add [...]

TextMate + QuickSilver = Drag & Drop ActionScript imports.

I couldn’t possibly code in anything but TextMate. Hell, I even blog from TextMate. And since I’m lazy by nature I wanted a better way to import classes from my class library. The TextMate ActionScript 3 Bundle Simon Gregory offers a nice auto complete functionality that lets you define a list of classes to choose [...]