While I am not an AppleScript expert by any means, I have a couple of
thoughts.

1. AppleScript runs as a program in OS X (or as part of OS X). It is not
part of PowerMail. So once PM activates a script, PM and the script run
independently, and at the same time. PowerMail would run faster on
itself than the script can. So the script would always be behind what
PowerMail is doing - i.e. behind further filters.

2. If the above is correct, then the solution would seem to be to have a
way to pause PM's filters while the script completes. I don't know if
this can be done in PM filters, or if AppleScript could do it. If
AppleScript can do it, the problem then is having AppleScript act
quickly enough to pause PM before further filters engage. Maybe putting
a time consuming filter, which effectively does not do anything, after
the script would allow the script time to pause PowerMail.

I wonder if using filter commands "Display alert", or "Speak" would work?


- Winston



Mikael Byström wrote:

>Rick Lecoat said it something like this:
>
>>Moving the script filter to the top of the filter list won't work,
>>because any other filters in the list that  are set to move attachments
>>to specific folders -- even if they are WAAAY down the filter list --
>>will cause it to fail. I don't know whether this is because the script
>>is still running when the attachment gets moved, or whether it's because
>>the script is postponed until all non-script filters have done their
>>work
>
>I would very much like to see some input here from CTM. What is actually
>going on when scripts run inside PowerMail?
>
> Meanwhile, are there any development tools that allow you to see the
>status of scripts running in PowerMails memory space? I usually use
>Script Debugger, but I need a better tool I think. What scripting tools
>do you other script developers use?
>
>I have time after time come up against limitations in PowerMail's
>implementation of Applescript that prevents at least myself from
>developing scripts addressing needs like: incremental message by message
>backup, changes of the settings of the search dialog and automatic de-
>htmlification of HTML based messages for example. That's sad, really.
>
>Mikael
>
>Tech facts:
>PM 5.5.3 Swedish | OS X 10.4.5 | Powerbook G4/550Mhz | 1GB RAM | 80GB HD
>



Reply via email to