• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie ? re: Applescripting for MS Entourage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie ? re: Applescripting for MS Entourage


  • Subject: Re: newbie ? re: Applescripting for MS Entourage
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 25 Jan 2002 12:56:23 -0800

On 1/25/02 11:29 AM, "email@hidden" <email@hidden> wrote:

> Hi there. I'm a newbie to Applescript and a newbie to this forum, but I have
> looked through my new "Applescript for Applications" manual and the Scripting
> Dictionary for Entourage, and I can't figure out how to do what I'd like to
> do, even though it seems like it shouldn't be that difficult.
>
> I need to write an Applescript for Microsoft Entourage (for Mac, if that makes
> any difference) that that can assess how many messages are in the Outbox.
> Then, I need it to select a subset of those, say 200 messages, connect, send,
> pause for a very brief period, then do the same thing again until there are no
> remaining messages in the Outbox.
>
> (I realize this may seem an odd request, and I do realize there are some
> prefab scripts (Send All and Send and Receive All) already available, but I do
> have my rather tedious reasons that I won't bore you with for needing to do
> the above. But if anyone actually does think this would be helpful
> information let me know.)
>

Entourage exists only for the mac, and so, of course, does AppleScript. But
you won't get Entourage to work from your AOL account, will you?

Anyway, here's what you want, I think:

--------------

property max : 200 -- change to what you want

tell application "Microsoft Entourage"
set n to count (every message in out box folder)
repeat while n > 0
if n > max then
set theMsgs to messages 1 thru max of out box folder
else
set theMsgs to (every message in out box folder)
end if
send theMsgs
repeat while connection in progress
delay 1 -- or omit this line to keep working in Entourage
end repeat
delay 2 -- or whatever you want (seconds) between sends
end repeat
end tell

--------------------



--
Paul Berkowitz


  • Follow-Ups:
    • Re: newbie ? re: Applescripting for MS Entourage
      • From: Paul Berkowitz <email@hidden>
References: 
 >newbie ? re: Applescripting for MS Entourage (From: email@hidden)

  • Prev by Date: Re: Weird try block syntax
  • Next by Date: Re: solutions to scripting addition terminology confilicts
  • Previous by thread: newbie ? re: Applescripting for MS Entourage
  • Next by thread: Re: newbie ? re: Applescripting for MS Entourage
  • Index(es):
    • Date
    • Thread