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


Click here to return to the 'Add a random signature to Entourage emails' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add a random signature to Entourage emails
Authored by: Libwolf on Apr 11, '07 06:13:30PM
It's been a while since this hint was posted, but I've made a minor mod to it. What this version does is call upon Fortune - in this case at "/sw/bin/fortune ~/library/bin/sigs.txt" - instead of the external site (which seems to be down). You'll need to change the path to your fortune files or prefered extension.

set MyQuote to ""
set MySignature to ""

try
	set MyQuote to do shell script "/sw/bin/fortune ~/library/bin/sigs.txt"
	AddQuoteToSignature(MyQuote)
on error
	quit
end try

on AddQuoteToSignature(MyQuote)
	
	tell application "Microsoft Entourage"
		if exists signature "QuoteMeNowBase" then
			set QuoteMeNowBase to signature "QuoteMeNowBase"
			set MySignature to the content of QuoteMeNowBase
		end if
		set MySignature to MySignature & MyQuote
		if exists signature "QuoteMeNowSig" then
			set the content of signature "QuoteMeNowSig" to MySignature
		else
			make new signature with properties {name:"QuoteMeNowSig", content:MySignature, include in random:false}
		end if
	end tell
	
end AddQuoteToSignature
[code]


[ Reply to This | # ]