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


Click here to return to the 'A real random fortune signature for Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A real random fortune signature for Mail.app
Authored by: Flem on Dec 16, '04 10:55:55PM
I had that script running, but when I put it into the crontab it kept launching mail every time it executed, so I added a shell script to check if mail was running. You'll have to merge this with the multi-signature code if you like, but for a single person this works fine:


if ((do shell script "ps -c -U yourusername | awk '/Mail/ {print $5}'") = "Mail") then
	set fortune to do shell script "/sw/bin/fortune"
	tell application "Mail"
		set content of signatures to "
----------
*** INSERT SIGNATURE HERE***

" & fortune
	end tell
end if


[ Reply to This | # ]