Adium & Camino

I’m a latecomer to Instant Messaging. I’ve only just discovered it, and part of that is because I don’t have many people to talk to over it. I have written one thing though, and that’s an improvement to megalogeek’s %_camino script. You can download it from Adium Xtras: Camino Current Page. Source follows after the jump!

1on substitute()     
2    tell application "Camino"         
3        URL of window 1         
4        set myURL to the result         
5        set myTitle to name of window 1     
6    end tell     
7    return "<HTML><A HREF=\"" & myURL & "\">" & myTitle & "</A></HTML>" 
8end substitute