Jump to content

Adium workflow

Recommended Posts

Hi, I created yet-another-adium workflow.



  • different icon for statuses other than available
  • contacts alphabetically sorted (except Alfred's favourites)
  • shows IM type (jabber, icq, skype, ...)
  • contact fetch speed optimalization
  • [new] different icon for contacts with unread messages
  • [new] deeper speed optimalization
  • [new] "not found" shown when there is not a contact matching the searched text
  • [new] "im -" shows only contacts with unread messages
  • [new] icons for "contact not found" and "contact with new message" changed
  • [new] shows idle time if known
  • [new] shows status message if any




The workflow is here.


It seems there is a bug in Adium applescript support and the workflow could have problem with facebook contacts. But fortunately the facebook account can be connected using jabber protocol and then everything is sunny and blue...


Translated: Is the workflow doesn't work for you temporarily disable facebook account... and maybe define jabber account to access facebook IM :-)


- Jan

Edited by dzejar
Link to comment

Hello Jefferson, I updated the workflow (the original link is still valid and points to the new one).


Now there is a configuration section at the beginning of the Script Filter code. If you change line:


set showHosts to false



set showHosts to true

the workflow will show also account server name...


You can also switch off the sorting of names using:


set sortNames to false

to make workflow super fast :-)


[edited] There is not longer a need to set sortNames to false. The speed optimisation makes it obsolete... 


- Jan

Edited by dzejar
Link to comment

Awesome, that's exactly what I wanted!  One last request... is it at all possible to include buddy icons?  I know the icons are cached here:




I'm not sure if you can do this via AppleScript, but there must be a mapping on disk (maybe via database) that shows which icon maps to which user.


Edit - Found it!  Check this out:


~/Library/Application Support/Adium 2.0/Users/Default/libpurple/blist.xml


Just a plain XML file that maps out the buddy icons.  It should be totally doable! :)

Edited by Jefferson
Link to comment

I tried to parse the XML file, but it seems to be time consuming (just traversing the XML file):




I am afraid it's not feasible to do it...


Just for my information how big do you have this XML file? My blist.xml file has more than 140kB...


- Jan

Link to comment

73 KB.  This is something that isn't feasible in AppleScript.  I spent some time today and wrote a similar workflow from the ground up in Python and I got icons working properly (it looks really cool too).  Would you be upset if I published it and credited you for the AppleScript portion?  I had to re-use your Run NSAppleScript since that's the only way to get a contact to open in Adium.  Thanks.

Link to comment
  • 5 months later...
  • 2 months later...
  • 4 weeks later...

@kidh0: Sorry for delay - Yes, it should be possible by removing the "whose status type is not offline" from 2 lines of the code very near to the beginning of the script.


@jothirams: Not yet, maybe if the next release of the workflow will be needed due to a change in Adium or Alfred I will consider to use a git repository...


@Nathan: Yes, it works for me with: OS X 10.9 + Alfred 2.1.1 + Adium 1.5.9. If you have a facebook account defined that could be the root of the problem. Please try to use jabber protocol instead of native facebook Adium support to access facebook messaging...

Link to comment
  • 1 month later...

@mairan.teodoro: No results from a workflow just means it's throwing an error. Unfortunately, screenshots of no results are generally no help for debugging the error.


You'll have to copy the contents of the script to AppleScript Editor, change {query} to match whatever you're typing into Alfred, run the script and post the error message.


Please see here for more info.

Link to comment
  • 3 weeks later...
  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...