Hi All,
I wonder if I can get some insight and input for the following
problem. I have written an App that parses Mail for Duplicates. It
works very well ( thanks to help from this list vis-a-vis threads and
timers).
I have one design issue that I am sure will cause some to say **
ouch**, but it **seems** to work. In order to give the user a chance
to cancel a part of the program, (with the sorting etc carried out in
a thread, I set a timer in a non-thread class ( to single mode) which
triggers a Dialog, then suspend the thread. The period for the Timer
seems long enough that the suspended thread occurs before the Dialog.
If there are other ways to do this, then I would like to hear those.
BTW...polling the thread is a great technique and works great. A huge
downside of this approach is that the duplicate mails are moved by RB
and are placed in a folder that Mail does not know about. Rebuilding
Mail is easy, but not elegant.
Next issue regards another approach. It is possible to use AppleScript
in a loop to move e-mails within Mail. But the loop seems to "outpace"
Mail's ability to respond, or perhaps AppleScript ability to help. So
has anyone else experienced this. If so, can one "Slow down" the loop?
Perhaps feedback from Mail that an action has occured.
Anyway, your thoughts will be appreciated.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|