Automator Send Email w/ Signature

Hi folks.

Not sure if this is the place to ask Automator questions, but my issue is an AppleScript solution, according to the Automator step.

I’m trying to send a proper email out with my signature. The problem is that the script that creates my email and sends it, doesn’t choose my signature, and the email goes without any signature. Not good. I thought the generation of the new outgoing message with a chosen account would have forced that signature, given the rules in Mail.app, but that is not the case.

So I have to force the choice of the signature I want. It is named “VP”, and I’m not sure what script to put in there. This is the whole Automator Script I have:

New Mail Message → To, Subject, Message, Account.
Run AppleScript:

on run {input, parameters}
	tell application "Mail"
		set the message signature of input to signature "VP"
	end tell
	return input
end run

Pause for 8 seconds (a visual check that things are set properly)
Send Outgoing Message

Any advice appreciated. Cheers