How to Remove Apple Mail Signature in SPAM Reporting Script?

Extreme newbie here…
In Apple Mail (3.6 (936)), I am using the following script from KNUJON (a modified version they posted from http://www.macosxhints.com/article.php?story=20060219014940761):

(* Cf. http://www.macosxhints.com/article.php?story=20060219014940761 *)
(* RS 31st July 2006 *)
set theSpamAuthority to "xxxxx@xxxxx.net"
(* or your personal Knujon address *)

tell application "Mail"
	set theMessages to the selection
	repeat with thisMessage in theMessages
		set newMessage to make new outgoing message at end of outgoing messages
		tell newMessage
			set visible to true (* comment out whole line to stop 'blinking' windows *)
			set content to thisMessage's source
			set subject to "Fwd: " & thisMessage's subject
			make new to recipient with properties {address:theSpamAuthority}
		end tell
		send newMessage
		set read status of thisMessage to true
		set was forwarded of thisMessage to true
		set junk mail status of thisMessage to true
	end repeat
end tell

The only change I’d like to make is to set the signature of the forwarded SPAM to “None” so that URLs I use in some of my signatures do NOT get included in the full header versions being sent to KNUJON.

I’m tried variations on

set message signature to false
set message signature to "None"

and other variations, but as I’m not AppleScript-literate, none of the variations I’ve tried run the script. I reached the point where I was able to avoid errors being generated, but I have the feeling I’m either placing the code in the wrong location or my syntax is incorrect.
Any help greatly appreciated.

Model: 2.66 Quad Core Intel Xeon
AppleScript: 2.2.1
Browser: Firefox 3.5.2
Operating System: Mac OS X (10.5)

Hi,

I can’t get that script to add my signature even if it is set in Mail’s preferences.

Have you tried setting up a signature with nothing in it called “none”, then adding the following line to the script?

(* Cf. http://www.macosxhints.com/article.php?story=20060219014940761 *)
(* RS 31st July 2006 *)
set theSpamAuthority to "xxxxx@xxxxx.net"
(* or your personal Knujon address *)

tell application "Mail"
	set theMessages to the selection
	repeat with thisMessage in theMessages
		set newMessage to make new outgoing message at end of outgoing messages
		tell newMessage
			set visible to true (* comment out whole line to stop 'blinking' windows *)
			set content to thisMessage's source
			set subject to "Fwd: " & thisMessage's subject
			make new to recipient with properties {address:theSpamAuthority}
		end tell
		set message signature of newMessage to signature "none" --<< additional line
		send newMessage
		set read status of thisMessage to true
		set was forwarded of thisMessage to true
		set junk mail status of thisMessage to true
	end repeat
end tell

Best wishes

John M

Thanks for the reply John.

I still haven’t been able to get this to work.

HOWEVER, in looking at the SPAM messages that have been sent in “raw source” form (the script changes the email to raw source prior to forwarding it to KNUJON) in Apple Mail’s “Sent” folder, I’m now seeing that there’s no trace of my signatures. It appears that there’s either something in the existing script that prevents my signatures from being included OR the act of converting an email to raw source PRIOR to forwarding it automatically prevents signatures from being sent. To test this, I viewed other messages in Apple Mail’s “Sent” folder that I’ve sent to clients, etc., and even when I view them as raw source, my signatures are still there. (in other words, no scripts were run on those messages, and my signatures CAN be seen below the raw source).

I’m not sure, but I may have been trying to fix something that wasn’t broken!

Paul