Script that copies Mail's message content and opens Automator App

I have a Mail filter that will run an Autoscript that will copy the messages content and then run a Automator App. However it is not working. This is the Applescript below:

using terms from application "Mail"
	on perform mail action with messages matchmsgs for rule mailrule
		tell application "Mail"
			set msg to item 1 of matchmsgs
			set msgcontent to (content of msg) as Unicode text
		end tell
		set the clipboard to msgcontent
	end perform mail action with messages
end using terms from

tell application "Update App" to activate