On 6/23/03 3:53 PM, "Nat" <[EMAIL PROTECTED]> wrote:
> Thank you for the suggestion. I created a new identity and it was working
> great until I added a schedule to run an applescript which I had recently
> added to my main identity. Now the new one does the same thing.
>
> The script follows but I can't see what the problem is. Again, I'm using
> 10.2.5 and 10.1.1
>
>
> tell application "Microsoft Entourage"
> connect to (every POP account)
> repeat while not (connection in progress)
> delay 1
> end repeat
> send
> delay 10
> tell application "Finder"
> if name of every process contains "MacSOUP" then
> tell application "MacSOUP"
> with timeout of 30 * 60 seconds
> purge
> connect with fetching news and sending
>
> end timeout
> end tell
>
> end if
> end tell
> end tell
That is not a very good script. It tries first of all to do a "Receive All"
and then waits until all messages have been received. The script was
probably written some time ago when things were slow and everyone used
dialup PPP. If you connect via DSL or cable or T1 and there are no messages
for you, or else if you have only IMAP (or Hotmail) accounts, the 'connect
to every POP account' will actually finish before the 'delay 1' command. (In
fact I don't see why that's in there at all.) If that happens, you will go
into 'delay' mode forever (i.e. until you quit Entourage). That ties up
Entourage in that the script will never finish, and prevents you from
clicking or key pressing anything. It effectively freezes Entourage.
Even if that doesn't occur, the script then tries to get MacSoup to clear
and connect, if MacSoup is open. But it puts it into a 30-MINUTE timeout.
That could tie you up for 30 minutes! It also puts the MacSoup commands
inside a Finder tell block, inside an Entourage tell block, which is poor
scripting. I can't see the point of this. Probably you should write the
script's author (quoting this message). I don't have MacSoup, but I think
this will prevent Entourage from becoming inactive. Replace with this
script:
tell application "Microsoft Entourage"
connect to (every POP account)
send
end tell
delay 3
set macSoupOpen to false
tell application "Finder"
if name of every process contains {"MacSOUP"} then
set macSoupOpen to true
end if
end tell
if macSoupOpen then
ignoring application responses
tell application "MacSOUP"
with timeout of 30 * 60 seconds
purge
connect with fetching news and sending
end timeout
end tell
end ignoring
end if
--
Paul Berkowitz
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>