blog advertising is good for you


blog advertising is good for you
User login

AppleScript, Adium, and Chatting Offline Buddies

I have waaaay too many chat buddies to leave offline contacts visible in my Adium buddylist, but I tend to IM a few of my Jabber buddies frequently even when they’re offline. In Adium, you can create new chat, select the service, and start typing in the UID of the contact, but that’s a small chore.

The dictionary for Adium’s AppleScript support is sparse and confusing, though I’m sure it makes perfect sense for seasoned AppleScript vets. I had to trowel around on Adium’s Trac site to figure it out. Documented here, for you pleasure, is how to create a new chat via AppleScript.

Save the following script into ~/Library/Scripts and enable Script Menu if you haven’t. Have I mentioned how much we love Script Menu here at Mac Geekery? I have? And you’re tired of hearing about it? Sorry. So, anyway, for the record, we love Script Menu. Now, you have a script you can select from the menu, or activate via your favorite short-cutting, hotkey-ing app.

tell application "Adium"
	create chat first Adium controller on service "Jabber" with UID "friendly.jabber.person@their.jabber.host"
	activate
end tell
Average rating
(1 vote)
About JC
JC's picture

Author Biography

JC is a former Mac Genius and Mac-centric IT worker with a background in print advertising. He earned a reputation as a miracle worker when he saved the day at a new business pitch with the arcane knowledge that Apple’s ADB cables were nothing more than poorly shielded S-Video cables.

JC runs the Heroic Efforts Data Recovery Service and writes Ungenius, a tawdry tale of the life and times of a former Mac Genius.

You can contact JC via IM or via the contact form.

Adam Knight's picture

The way I handle it is to add the person’s cell phone in the list and then merge the other contacts on top of that. Since mobile phones are always online, the person is always on the list.

Just add the number like +15555551212 as an AIM contact and then drag that on top of the existing contact for that person.

This does presume you have the person’s phone number, and you still have to manually pick the Jabber ID from the chat window header after opening it.

JC's picture

…..if Adium would reliably join contacts and remember that between app launches, that’d be great! Eye-wink

Adam Knight's picture

Works fine for me in 1.0. One of the pre-1.0 betas was horrible at it, though, and munged the buddy list. I just removed the buddy list plist file after 1.0 and re-did it all and it’s been solid ever since in that aspect.

The dictionary for Adium’s AppleScript support is sparse and confusing,
…. and enable Script Menu

HOW do i enable the script menu???

Ok – so i’m even more of a novice..

“The dictionary for Adium’s AppleScript support is sparse and confusing, though I’m sure it makes perfect sense for seasoned AppleScript vets. I had to trowel around on Adium’s Trac site to figure it out. Documented here, for you pleasure, is how to create a new chat via AppleScript.

Save the following script into ~/Library/Scripts and enable Script Menu if you haven’t.”

HOW do I “enable Script Menu”…..??????
thanks
tony

Adam Knight's picture

With AppleScript Utility.

Post new comment
The content of this field is kept private and will not be shown publicly.
12 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.