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. [...]
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 [...]
By Martin
|
Posted in Automation, Code, Downloads and Copy-Pasteables
|
Also tagged Apple, AppleScript, Apps, Code for you, Debugging, Fixing shit that's broken, Geekery, Mac, One click solution, OSX, Potentially dangerous and harmful stuff
|
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 [...]
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. [...]
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 [...]
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 dialog [...]
A big pet peeve of mine is that unlike most other apps Mail.app is a goddamn hassle to just quickly switch to.
If you’ve closed the window in Mail rather than just hidden or minimized it, it seems to be no way to make it reappear with a keystroke. Instead you have to actually move your [...]
As mentioned before: Mouse bad, Keyboard good. Back when I thought I was going to be a designer and spend my life in Photoshop and Illustrator I still was a huge fan of keyboard shortcuts. Difference is that since the mouse was, by necessity, my weapon of choice in those days and my love for [...]
I might be the only one with this problem, but in case that isn’t true I thought I’d write up a short one.
I love (Nay; Depend on!) Firebug for my HTML/CSS/JS work and I also hate having to use the mouse if I can get stuff done with a keystroke instead. (I’ll be writing a [...]