Archive for the ‘Desktop’ Category

Set Adium Status Message with Quicksilver

Tuesday, July 1st, 2008

I just wrote an AppleScript for setting the status on Adium using Quicksilver. :) It’s dedicated to usage with FriendFeed, which I recently registered at. It’s not something new (read below) but at least this works.

Here goes:

using terms from application "Quicksilver"
  on process text ThisClipping
    tell application "Adium"
      if (ThisClipping is not "" and ¬
        (first character of ThisClipping is "/")) then
        set theCommand to first word of ThisClipping as text

        if (theCommand is "o" or ¬
          theCommand is "off" or ¬
          theCommand is "offline") then
          go offline
        else if (theCommand is "i" or ¬
          theCommand is "invis" or ¬
          theCommand is "invisible") then
          go invisible
        else if (theCommand is "a" or ¬
          theCommand is "away") then
          if ((count words of ThisClipping) is 1) then
            go away
          else
            go away with message ¬
              (texts (offset of (word 2 of ThisClipping) in ThisClipping) ¬
                thru -1 of ThisClipping)
          end if
        end if
      else
        go available with message ThisClipping
      end if
    end tell
  end process text
end using terms from

This was written after referring to these two blog entries. (I didn’t even bother changing the ThisClipping variable name, as you can see.)
Paste the code into Script Editor. As written in the first blog entry I’ve mentioned, you can save this in “~/Library/Application Support/Quicksilver/Actions“. If the directory doesn’t exist, just create it. And restart QuickSilver after that.

I named my script “Adium Status.scpt”, so I could use it after typing “A” and “S”. (of course, I could also type “status”, or whatever.)

Features:

  • “/a”, “/away” changes your status to Away
  • “/i”, “/invis”, “/invisible” changes your status to Invisible
  • “/o”, “/off”, “/offline” tells Adium to go Offline

You could type “/a Something” and your status will be set to Away with a custom status message of “Something”.
Your custom status message is set leaving your Status as Available on default.
The custom status message only works with the Away command because you can’t have status messages while you’re Invisible or Offline. (duh)
This is tested with the latest 1.3b5 beta of Adium and latest build of Quicksilver.

Chairs.. And Keyboards

Tuesday, June 24th, 2008

This article is a little old but still it applies. I’ve been reading a lot about ergonomic chairs lately, and I find that this article sorta sums it up.

I have to be too rich to spend SGD1000 and up for these chairs. How I wish I am too rich…

Oh and why do I want to spend so much on a chair? Read this. It’s just one of the many articles and people out there that say the same thing. And it’s true. I haven’t even started working and I have backaches occurring regularly (meaning it goes away after some time and comes back). Yes, I have even considered physiotherapy. But I just find that that takes up a lot of time and money and I don’t think treatment is the right direction of solving the problem.

Oh well. Added it to the wish list. :)

This all came about when I’m supposed to read up about Design Patterns. Got distracted with looking at keyboards. Hmm.. The new Das Keyboard looks good. Wish I could order it but then it seems like it’s gonna arrive too late. :(

I also came across the HHKB Pro 2, which is a USD250 keyboard that looks something like this:

Pretty normal looking huh? There’s a lot about it online. When I have the money. I’ll invest in all these things. When I have the money

Testing out Blogo

Monday, June 23rd, 2008

I’m testing out Blogo.
Here’s an image. Just to try it out.


Lalala…


Adobe Photoshop finally Repaired

Sunday, June 22nd, 2008

I finally “repaired” Photoshop and Illustrator after reading this tip.

Good stuff. After downloading SQLite Browser, I edited the entries with Photoshop to change the paths to point to “/Applications”, the original install path.

Here’s the description of the problem:

I installed the Adobe CS3 Suite on my external 1TB storage. I then realised that I needed some Apps to be on the computer itself. And you cannot decide a separate location for each application in the installer.

So I copied Photoshop and Illustrator to my computer harddisk.

This resulted in a dialog that says “Application has moved.” every time I start the application. It asks to “Repair Now” or “Cancel”. “Repair Now” does nothing.

The dialog is forever reoccurring. And it prevents me from opening files directly when Photoshop is not already running. I noticed it also causes the launch of the application to be very very slow.

Anyway, here’s how I did it.

Pre SQLite steps:

  • Install SQLite Browser. Link is above.
  • Copy caps.db found in “/Library/Application Support/Adobe/caps” to the Desktop.
  • Duplicate the file so you keep a copy of the original. (in case anything goes wrong)

  1. Load caps.db from the Desktop.
  2. Go to the “Browse Data” tab.
  3. Select “payload_data”.
  4. Photoshop and Illustrator are located in the last few entries, so you have to go to the second page.
  5. Look for “Photoshop” in the value and check the left side for the id that matches it.
  6. Change all occurrences of the paths that are incorrect to the moved location. In this case, there are three occurrences under the same id so I changed them to “/Applications” from “/Volumes”.