Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the ' 10.7: Messages.app (BETA) uses iChat syntax for AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Messages.app (BETA) uses iChat syntax for AppleScript
Authored by: mark hunte on Feb 22, '12 04:20:57PM
I think you can use the handle property

using terms from application "iChat"
	
	on message received theMessage from theBuddy for theChat
		--display dialog (theBuddy's name as string)
		if theMessage is "some Text" then
			-- do something
			set amate to buddies whose handle contains "amate@mac.com"
			
			send "test" to item 1 of amate
		else
			
			-- do something
			send "some other info" to theBuddy
		end if
	end message received
	
end using terms from
 
---
mh


[ Reply to This | # ]