Adium


I’m very sick of the INFO cmdproc.c:98:show_debug_cmd() rubbish that the latest Adium release is spewing into my Console Log twice a minute.

I’m finding I’d rather leave IM off, than see it traced across my desktop.

(I use MkConsole to keep an eye on things).

Update: it looks like 1.3.2b1 fixes this. Yay!

View Comments (0)   RSS Feed for Comments on this Post

There exists a small bug in Adium, which apparently has been fixed in an upcoming version, which means that hosted Gmail accounts cannot sign in as GTalk accounts.

To fix it, I needed to create a new Jabber account, with the following settings:

Account.

Jabber ID: matt@schinckel.net
Password: ••••••••••••••••

Options.

Connect Server: talk.google.com
Resource: Adium
Port: 5223

☑ Force old-style SSL

Then it connected fine, first time.

View Comments (0)   RSS Feed for Comments on this Post

Just a little quickie: sometimes Adium loses connections. This script will reconnect any disconnected accounts.

tell application "Adium"
    repeat with acc in accounts
        connect acc
    end repeat
end tell
View Comments (0)   RSS Feed for Comments on this Post

I had a thought as to why it might not be a good idea to use /commands, instead of %_commands in Adium. If the text you type is part of a URL, then it will be replaced by the substituted text.

For instance, http://itunes.schinckel.net/ would be replaced by http:/♫ The Chemical Brothers (Feat. The Flaming Lips) • The Golden Path.schinckel.net/, which is probably not desired behaviour.

I’m not sure if this is a big enough deal for me to stop using them. I did also note that an afp:// had a smiley inserted into it instead…

Update: You can add the following to the Info.plist:

            <key>Prefix Only</key>
            <true/>

Where the keyword appears. This will mean that the tag must be at the start of a ‘word’ for it work.

Thanks, Reikon!

View Comments (0)   RSS Feed for Comments on this Post

I had to fix a couple of things in my Adium Scripts tonight: I figured out that if you are a chat with more than one person (like in a Jabber ‘room’), and you use serviceClass of contact of the active chat of the first interface controller you will get a list of items, not just one.

Actually, you always get a list, just usually it’s only one item long.

So, to test if the chat serviceClass is in a set that can handle HTML in chats, you need to use first item of serviceClass... instead of just serviceClass...

Note that this returns correct values, wheras serviceClass of chat 1 (where it is a group chat) will return an empty string. Bad coding, Adium.

Anyway, I’ve fixed /who to work with multi-person chats, too.

View Comments (0)   RSS Feed for Comments on this Post

I’ve started phase one of the iTunes controller bot: I’m downloading the jabber server for MacOS X.

$ sudo port install jabberd

Phase Two will soon be underway: I’ve also downloaded the source of a Python bot… more to come soon!

Actually, getting the jabber server to work wasn’t as easy as it should have been: I’m using a private jabber account on a server only I know about, but I’ll post more stuff as I get it working.

Python looks to be an easy way of getting the bot to work: it would be nice to be able to do it all in AppleScript though.

I can’t believe I just said that!

View Comments (0)   RSS Feed for Comments on this Post

Not that this has ever come up, but there is an AppleScript out there somewhere that allows you to type %_who into Adium, and it returns a list of people you are chatting to.

Naturally, it was sub-standard, and I have improved it.

Features mine has:

  • Don’t display the name of the person who you say this to
  • Display “I’m not chatting to anyone else.” if you aren’t
  • If the person you are chatting to can handle HTML in chat (Jabber, AIM), then list display names of the people you are chatting to, with each person a clickable link that will open a chat with that person
  • Otherwise, display a list of people you are chatting to, with the type of chat listed after each name

I’ve included the old one if anyone was interested: you can get it by typing %_who. Mine uses /who, and you can download it from Adium Xtras.

View Comments (5)   RSS Feed for Comments on this Post

I had a thought just before. (Unusual, I know).

I wrote a program called iTunesRater so I can rate my music as I listen to it in iTunes, and then went on to write a series of Adium Scripts to control iTunes ratings, and get data from iTunes.

What if instead of having to create scripts for iTunes that did everything you want, you just create a bot that runs, and you send messages to it, and it controls iTunes.

So, I could have the program running, and instead of having to type:
/itunes
♫ The Chemical Brothers (Feat. The Flaming Lips) • The Golden Path
/rate{44}
/itunes

♫ The Chemical Brothers (Feat. The Flaming Lips) • The Golden Path ★★

I could just start up a chat with iTunes, and type all sorts of commands:
me: song
it: ♫ The Chemical Brothers (Feat. The Flaming Lips) • The Golden Path
me: rate 44
it: ♫ The Chemical Brothers (Feat. The Flaming Lips) • The Golden Path ★★
me: next track
[iTunes next track plays]

All it would seem to require is a program that can connect to a server of some sort (I think maybe Jabber, then I can run my own Jabber server!), and sends AppleScript messages to iTunes. Or any other application, for that matter.

View Comments (0)   RSS Feed for Comments on this Post

It’s nice to show other users what you are listening to, and provide a handy link for them to see more about the artist and track.

I noticed that some IM systems don’t like HTML, and I figured out a way to make the link only be sent to a user of an AIM compatible or Jabber server.

Basically, you test the result of serviceClass of contact of the active chat of the first interface controller, and if it is “AIM-compatible” or “Jabber”, then you use HTML, if not, just plain text.

You can download it from Adium Xtras: Now Playing in iTunes.

Full Source:
(more…)

View Comments (0)   RSS Feed for Comments on this Post

Getting the active chat in Adium from AppleScript appears at first look to be a little dicey: Adium needs to actually be the active application before the code actually works!

For instance, if you open up the Script Editor, and type in the following:
(more…)

View Comments (0)   RSS Feed for Comments on this Post

Next Page »