Use random signatures in MT-NewsWatcher

May 10, '10 07:30:00AM

Contributed by: michelle_eris

MT-NewsWatcher (MTNW) allows only one signature per personality. This AppleScript will allow you to have a random script in each message -- however, you must manually run the script for each message.

property theFile : missing value
tell application "MT-NewsWatcher"
  try
    set msg to message window 1
    if theFile is missing value then set theFile to choose file with prompt "Choose the signatures file."
    set sig to some paragraph of (read theFile)
    set the signature of msg to the sig
  on error
    display alert "No outgoing message" message "You must have an outgoing message window open." as warning
  end try
end tell
Before running the script, create a file containing the sigs you wish to use. Place one sig on a line; multi-line sigs are not supported. Do not leave any blank lines in the file.

The first time you run the script, it will ask you to locate the sig file (also after any editing). After that, if there is an outgoing message window open, there is no other user interface -- it chooses a sig and places it in the outgoing message. Otherwise, it alerts you that you need to have an outgoing message window open.

I compiled the script as a script file, not an application file, and placed it in ~/Library » Scripts » Applications » MT-NewsWatcher. I can then access it from the AppleScript menu in the menu bar whenever MTNW is the frontmost application.

[crarko adds: I haven't tested this one.]

Comments (0)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20100503173321442