I am trying to get the following script to work so that messages are accepted and brought to the front only if the service type is Jabber, but I am not having any luck getting the IF statement to work. Any ideas?
Thanks
Thanks
Code:
using terms from application "iChat"
tell application "iChat"
if service = Jabber then
beeb
else
return
end if
end tell
on received text invitation theText from theBuddy for theChat
accept theChat
activate
end received text invitation
on message received theMessage from theBuddy for theChat
activate
end message received
end using terms from