View Single Post
...quick improvement for those following along at home:

change...

Code:
try
	set _recipient to name of first recipient of _msg
	set _test to _recipient
on error
	-- if the Recipient's name property was blank, use the e-mail address instead
	set _recipient to address of first recipient of _msg
end try
to

Code:
try
	set _recipient to name of first item of to recipients of _msg
	if _recipient is missing value then set _recipient to address of first item of to recipients of _msg
on error
	-- if the Recipient's name property was blank, use the e-mail address instead
	set _recipient to address of first item of to recipients of _msg
end try
...for better recipient handling in 10.8.