Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm writing a notification script for Skype event notifications. (As far as I know, that feature is Linux-only; go to "Options", "Notifications", select an event and fill in "Execute the following script".)

For incoming chat messages, I can get all the information I need with:

my-script.sh "%sname" "%smessage"

That is, %sname is substituted with the name of the sender and %smessage with the message text.

But for outgoing chat messages, %sname contains my name. I want to get the recipient's name somehow, but my Google skills have failed me so far. Is there another variable for that? (Or any documentation from Skype of this feature?)

share|improve this question
    
have you tried using %sskype instead of %sname? –  zaynyatyi Sep 16 '10 at 13:09
    
Yes, it gives me my Skype username instead of my full name, but still nothing about the other person. –  legoscia Sep 16 '10 at 14:06
add comment

1 Answer

up vote 1 down vote accepted

You can't, because you're not sending a message to a particular user, but to a channel that you and the recipient are listening to.

Private skype chat with two participants is the same as 3+ participants, so there is no 'recipient' as such. Maybe there's a way to get the 'target chat name', but I've not been able to find a way to do it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.