Current selected buddy in Messages

Hello

I have been searching for a way with Applescript to tell me who the current buddy is that is selected in Messages.
Thanks for any help you can provide

PolishPrince

Hi,

there is no selection element or property in the dictionary,
so a solution might be GUI scripting

StefanK

Ok, Thanks

PolishPrince