Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Rooster29

macrumors newbie
Original poster
Feb 26, 2010
2
0
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

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
 

Rooster29

macrumors newbie
Original poster
Feb 26, 2010
2
0
no error message

I am not getting an error message but the IF statement seems to have no affect at all. The rest of the script runs if the Instant Message is from AIM Bonjour or Jabber.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.