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: ryanhunt on Aug 15, '06 06:43:10PM

I started this little exercise because I get a daily email with a motivational quote in it. When I found one I really liked I would create a random signature for it. The problem as you can imagine is I started to get quite a few random signatures where the only thing changing was the quote at the bottom.

I am thinking of incorporating a more robust parsing mechanism to download the Quote of the Day or the Word of the Day, and storing it in a sig file. Anyone else interested in this approach?

I have also though of creating a quote submission page where people can submit their own quotes. Any interest in that?

Ryan Hunt

[ Reply to This | # ]
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 ""

	set MyQuote to do shell script "/sw/bin/fortune ~/library/bin/sigs.txt"
on error
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
			make new signature with properties {name:"QuoteMeNowSig", content:MySignature, include in random:false}
		end if
	end tell
end AddQuoteToSignature

[ Reply to This | # ]