iChat Delete Buddy from buddy list?

Is there a way to delete a specific buddy from the buddy list in iChat via AppleScript?

Using PreFab UI Browser, we get a really complicated line specifying row 2 of table 1 of scroll list, etc… but nothing about just like:

delete buddy screenname

or iChat does not allow that at all?

Marvin

Model: MacBook 13" Alumium
Browser: Safari 528.16
Operating System: Mac OS X (10.5)

Did you look at the ichat applescript dictionary? I did and it has a “delete” command and a “buddy” command. So I think it’s possible. I didn’t try this…

set screenname to "some name"

tell application "iChat"
	set theBuddy to first buddy whose name is screenname
	delete theBuddy
end tell

unfortunately it doesn’t work. It throws an iChat got an error: Can’t make some data into the expected type. error