Essentially, I need to parse the response string of the CHAT CREATE command with AppleScript to get the chatid. The response looks like:
CHAT #my.username/$123abc456blah STATUS MULTICHAT
I tried
set chatid to item 2 of response
but that returns 'H' -- I also tried
set chatid to word 2 of response
but that returns 'my'. I imagine this is an easy question for someone that knows AppleScript. Here is a sample script...
tell application "Skype"
set response to (send command "CHAT CREATE username1, username2" script name "MyScript")
set chatid to ***WHAT GOES HERE?***
send command "ALTER CHAT " & chatid & " SETTOPIC Hello" script name "MyScript"
end tell