Tags
Ad-Spotting ADC Adobe Analytics Apple Apple Mail AppleScript AS3 Auto Show Bash BBEdit Catching Up Clutter Cocoa Code Colbert Raport Color Comedy Central CoreGraphics Firefox Food Google IANMTU IgorMUD iPhone iTunes JavaScript Leopard Life Mac OS X Movable Type Predictions Python Rants Raves RSS Safari SDK Site Info TextMate Tiger Travel Weblog WordPress WorkArchives
Tag Archives: AppleScript
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 [...]
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 [...]
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 Apple Mail, Code, GUI scripting, top posting 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 Code 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 Code 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 Code 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 [...]
Beautiful
AppleScript — maybe you’ve heard of it. In fact, if you’re reading my website, you’ve probably heard of it. What’s cool about AppleScript is basically what I have been known to say is cool about PHP; its a big spool of bungie cord and a bag of clip-on ends. But that’s entirely beside the point. [...]
Also tagged Movable Type Comments closed
BBEdit Text•Shift Right Script
This is an AppleScript that I used with BBEdit to make the text-indent commands behave the way I expected. It has two known defects: When multiple lines are selected, they don’t stay that way Errors get thrown in end-of-document cases Beyond that, you’re on your own. on menuselect(menuName, itemName) return false end menuselect on postmenuselect(menuName, [...]
Snow Leopard