Tag Archives: AppleScript

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. [...]

Things Migrator 2

I noticed that my little app for migrating your data from Things to The Hit List still gets some hits. I haven’t really looked at it for ages, but I wasn’t terribly surprised to see that it’s broken under Snow Leopard.
I decided to fix it, expecting AppleScript projects in Xcode to work pretty much the [...]

Open letter to O’Reilly : Your iPhone apps suck

Update 2: New versions of several of these apps have been released. Things are a lot better.
Update:I’ve had feedback on this post from O’Reilly both by email and in the comments. Both Andrew and the other O’Reilly representative I’ve been in contact with seem sincere when they say that these apps will be updated with [...]

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 [...]

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 [...]

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"
  activate
  OpenURL theUrl
end tell
Result: You are happy. [...]

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 [...]

Quicksilver actions the easy way

Just encountered bliss deep down in the Quicksilver Google Groups forum. I was trying to save myself a keystroke as usual. More specifically; I often open folders and files in TextMate, and the steps for doing so with Quicksilver are

1: Type the first few letters of the folder/file.
2: Tab over to the next pane and [...]

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 [...]