Scripting Entourage to Send Mail in Chunks??
Scripting Entourage to Send Mail in Chunks??
- Subject: Scripting Entourage to Send Mail in Chunks??
- From: email@hidden
- Date: Wed, 10 Jul 2002 12:57:25 EDT
Hi Applescripters. I've had some experience Applescripting, but . . .
apparently not enough! If any experienced folk could look at what I'm doing
and tell me the (probably obvious to many, just not to me) thing I'm doing
wrong, it would make my day!
I'm trying to write a script that will look at the messages in my Outbox (in
Entourage, but it could be any Mac OS X compatible email app, if another
would be better), decide how many, send a few (say, 5), delay a number of
seconds to let the connection die, then reconnect and send another chunk
until every message in the Outbox has been sent. (If you care or are worried
about why I'm trying to do this, please read at bottom of mail.)
I wrote the following but it doesn't work:
set max to 5
tell application "Microsoft Entourage"
set n to count (every message in folder "Outbox")
repeat while n > 0
if n > max then
set chunklet to messages 1 thru max of folder "Outbox"
else
set chunklet to (every message in folder "Outbox")
end if
send chunklet
delay 15
set n to count (every message in folder "Outbox")
end repeat
end tell
I keep getting this error: "Microsoft Entourage got an error: Can't get
messages 1 thru 5 of folder "Outbox." How can I get it to . . .get the
messages? Or alternatively, if someone else has a better way or other
suggestions about how to do this that would be fabulous too, this was just
the best (??) way I could think of so far.
Also, for my delay I was hoping for 15 seconds or so, but when I type
"seconds" after delay it says, "expected end of line, but found class name."
Do I not need the word "seconds?" Is seconds automatic?
Any help would be most appreciated!!
(Why? I send out a lot of email via 2 sites I run, and I'm getting some of
it blocked as "spam," particularly by Yahoo. And no, and may other people's
cellphones destroy my brain if I am lying, none of it is spam. ZERO SPAM
HERE. By request only, easy to unsub at any time. I think I'm just sending
in batches that are too large, but I don't have time to just sit and make the
little batches manually, so I'm trying to make Applescript do it for me.
Also, I don't think I can use one of those bulk mail programs because I would
have to be able to import the messages manually before running and they only
let you import mailing lists . . . to the best of my knowledge. Thanks. :))
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.