Tag Archives: Code

ThisSpace

One of the first things that happened to me in Spaces that irked me was its auto-switching to another space when I didn’t want it to. Sure, that’s probably what I’d want it to do a lot of the time, but if I’m trying to open a new window for an app that already has [...]
Also tagged , , | Comments closed

iTerm/TextMate Here

Yes, again. Inspired by other solutions to the same problems, here are updated versions of these scripts. The primary difference is that they’re based on Apple’s droplet sample, so you can either click on them (for the current directory) or drop stuff on them and it’ll work either way. So, why don’t I just use [...]
Also tagged , , , , | Comments closed

Later that year…

A while back, John Gruber posted a FastScripts script to fix a loathsome Apple Mail behavior, which was shortly followed by signature-enabled improvements. Fourteen short weeks later, here’s my own version: tell application "Mail" to activate tell application "System Events" tell process "Mail" -- Run the regular "Reply" command tell menu bar 1 click menu [...]
Also tagged , , , | Comments closed

TextMate Here

That was actually the first post in a series (of two). This one opens a new TextMate window on the selected item (if there’s a single item selected), or the current folder otherwise. This makes the script a lot shorter (that and there being a simple command-line TextMate launcher that I can use). The instructions [...]
Also tagged | Comments closed

iTerm Here

This is, for lack of a better description, my version of the Open a Command Window Here Windows XP PowerToy. I’ve played around with doing this from the context menu, but I eventually decided I’m not fond of that approach. Since I have the toolbar visible in Finder, however, it’s pretty easy to put a [...]
Also tagged | Comments closed

A Little Bit Slower Now… (a little bit slower now…)

When I log into my user account on my PowerBook, everything stops for a few minutes. Drops of rain stop in mid-air, the wind falls still, the clock stops ticking, and my cat stops preening himself. I’m tired of this. Spurred on by these hints, I finally got around to do something about it. I [...]
Also tagged | Comments closed

RDC Shortcut

Since I do occasionally have to fiddle with a Windows server, and there are little things about Microsoft’s Remote Desktop Client that bug me (only one session open at a time, for example), I wondered if the matter was scriptable somehow. Here’s one way (after installing rdesktop via DarwinPorts): #!/bin/bash # RDC="/opt/local/bin/rdesktop -a24 -g 1024x768" [...]
Also tagged | Comments closed

A bash script to mess with the containing Terminal.app window

I found it, but I still don’t have a clue as to why I wrote it to begin with: function setgeometry { local rows=`expr "$1" : '[0-9]*x([0-9]*)$'` local cols=`expr "$1" : '([0-9]*)x[0-9]*$'` case $TERM in Apple_Terminal) window=`osascript -e 'tell app "Terminal" to get first window'` #echo $window osascript -e 'tell app "Terminal"' -e "set number [...]
Also tagged , | Comments closed

Zot's JavaScript Status v0.3.1

Here’s an updated one that renders as intended on more platforms. I’ve tested Mac OS X and Windows, and for the moment I’m hoping for the best on Linux (no linux machine handy right this minute). Install or Download.
Also tagged | Comments closed

Zot's JavaScript Status v0.3

I eventually got tired of waiting for the Firefox extension I had been using for this to be updated, so I did it myself. I haven’t found the need to tweak this since I rolled it a week or two ago, so hopefully it is stable-ish. Install or Download. Update It doesn’t quite work on [...]
Also tagged | Comments closed