[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Folder actions (Not)



At 22:25 -0400 4/19/99, Chris Nandor wrote:
> At 18.46 -0400 1999.04.19, Vicki Brown wrote:
>>A user has asked if there is a way that she can be notified when a file is
>>dropped into her drop box.
>
> Folder Actions only trigger when the folder changes appearance on screen,

That's not a Folder Action... that's a Window Action. (sigh)

> not when the folder contents change.  So I would run a cron and send mail
> with MailTools or straight Net::SMTP, as Peter suggested.

I found this dreadfully cute little mail gateway applet thingie called
MondoMail that allows sending email via Apple Events.

I'm not over-fond of AppleScript (even embedded inside MacPerl scripts :-)
but I found the syntax to be amazingly clean (almost Unixish in its
appearance ;-)

tell application "Mondo Mail
    send mail "Body of message" to "user@host" CC "ccUser@host" BCC
"bccUser"
	subject "This is a MondoMail Message" SMTP gateway "yourGateway"

Much cleaner in fact that the corresponding Net::SMTP syntax (which I
thought was ghastly).  I haven't looked at MailTools.

MondoMail is freeware (as in free beer). http://www.acmetech.com/

I know it's not portable, but I think since this is a Mac application I'm
writing, I may go with this one. MacPerl with embedded AppleScript code,
set off by cron (http://gargravarr.cc.utexas.edu/cron/cron.html) every four
hours.

It should work nicely, I should think.  If it does, I shall let y'all know
:-)

- Vicki
---
      |\      _,,,---,,_       Vicki Brown <vlb@cfcl.com>
ZZZzz /,`.-'`'    -.  ;-;;,_   Journeyman Sourceror: Scripts & Philtres
     |,4-  ) )-,_. ,\ (  `'-'  P.O. Box 1269  San Bruno  CA  94066
    '---''(_/--'  `-'\_) http://www.cfcl.com/~vlb  http://www.macperl.org

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org