Tag Archives: AppleScript

Snow Leopard

So, Erwin posted his first impressions list, which reminded me that I’ve done one of my own from time to time, so here goes. I didn’t do a regular upgrade, and even then I don’t really remember how long it took last time,1 so I have no idea if it installed any faster. DiskWarrior seemed [...]
Also tagged , , | Comments closed

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

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

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 | 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, [...]
Also tagged , | Comments closed