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: mrchaotica on May 28, '04 03:57:13AM

Hey, this is really cool! It might be nicer to use "fortune -s" so you don't get a big paragraph-long sig, though.

Also, I bet there's a way to get this to run every time you select "Compose New Message" - anybody know what it is?



[ Reply to This | # ]
A real random fortune signature for Mail.app
Authored by: erickaterman on May 29, '04 10:42:19AM

I agree--I actually use the -s flag in my script, which directly updates the ~/Library/Mail/Signatures.plist file every other minute so that the signature shows up in Mail as a bona fide sig; for example, I can make "dynamic signature" my default sig, and it shows up automatically in new messages as well as in the list of sigs menu list in new messages. The script that alters the .plist file is (necessarily) a little messy, but it gets the job done. The only downside is that Mail doesn't refresh its list of signatures when the plist file is changed--and, as far as I can tell, there's no way to do this through AS or bash--so if you leave Mail open, then your signature might not be current. Otherwise, you can just quit and restart Mail, which isn't a big deal. Here's an example of a signature (most of the other stuff is there "for fun" or "because I can" or what-have-you):

---------------------------------------------
[name, etc.]

past:
recent apps: Script Editor; iCal; Safari; Mail; iTunes
recent docs: [file 1], [file 2], [hee hee]

present:
UTC: Sat May 29 14:35:00 GMT 2004
listening to: Dakesh York "Beethoven's Moonlight Sonata" (4:27) from Masterworks Reworked: Remixes For A New Generation

future:
next class: *automata theory* (this Thursday at 10am in PAIĀ 3.14: with glen nuckolls)
next radio: *Like Biting Into a Fork* (next Tuesday at 5am in KVRX: summer stylin' on FM)
next sport: *squash club* (this morning in 55 minutes in rsc/gregory: come and learn how to play squash)

checkuary, n:
The thirteenth month of the year. Begins New Year's Day and ends
when a person stops absentmindedly writing the old year on his checks.



[ Reply to This | # ]