2 posts tagged “applescript”
For those of you who use TextMate, here's an awesome little AppleScript that you can put in your Finder window toolbar which will open the current folder in TextMate in directory browsing mode. Save the source as a .scpt file and open it in ScriptEditor. Save it as a run-only application and drag that app to your Finder toolbar.
I <heart> TextMate... Can't. Wait. For. TextMate. 2.0! I can't imagine how it could get any better...
Windoze users, you can move along. Nothing to see here...
For those of you Mac-heads using Safari as your default browser (which, sadly at this time is not fully supported here), you may find it onerous to always open Firefox before going to the Comet posting screen. Using a little Applescript makes the whole thing much easier.
I would attach it, but I haven't yet figured out how to upload anything other than photos, books, music and movies (clearly, I need to read the help section :-).
Luckily, it's pretty darn simple:
property target_URL : "http://www.notcomet.com/compose"
tell application "Firefox"
activate
Get URL target_URL
end tell
Open "/Applications/Script Editor", copy and paste that in and save it (as run-only if you like). Then, you can either keep that in a handy place (desktop? F11 for Expose?) or, if you're a real power user, activate that with a Quicksilver trigger. Yeah, baby!