|
|
Create dynamic Mail signatures via fortune
I did this with Mac::Glue and have it set in cron:
Create dynamic Mail signatures via fortune
I do the same thing with an AppleScript (but then I didn't know about Mac::Glue - I'll have to check that out). It's worth mentioning that I have the cron job check that Mail is running (using ps and grep) before launching the script. That way, if I'm not running Mail, it won't start up spontaneously every five minutes.
(Another nice feature about doing things this way is that you can have multiple signatures using multiple fortune files, and some that don't use Fortune at all. Handy if you don't want to accidentally send mail with quotes from comics to potential employers.)
Create dynamic Mail signatures via fortune
Below is an extended version that a) tests to see if Mail is running before attempting the update, b) reads quotes from a .quotes file in your home directory (fortune can often be inappropriate), and c) prefixes the quote with a constant signature 'template' (i.e. your name + phone).
Here's an example .quotes file:
If anyone's not used Mac::Glue before, here's what I did to fetch and install Mac::Glue via the CPAN (http://cpan.org), and configure for Mail:
You might like to install this script in cron:
(save code in a file, e.g. /Users/you/bin/mail_randomsig.pl)
The script:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|