On Run handlers
On Run handlers
- Subject: On Run handlers
- From: Dan Doughtie <email@hidden>
- Date: Wed, 11 Feb 2004 18:27:04 -0500
I have a timing problem. I switched from Entourage to Email to run some
cleaning routines and then write a file out.
Basically I have a Rule that moves the file to a Mailbox
then the rule runs the applescript.
I look at the mailbox then do a repeat against all of the messages.
Unfortunately I goes so fast that the message hasn't really had time to
appear so the script missing the file. The next email in will trigger the
script and the message in the folder will get processed then the new mail
falls in.
So. I tried running a small applet that triggers the script to run every
minute to clean out the mailbox.
I can't get the on run handler to work correctly because when it runs it
can't seem to pass the variables to the subroutines. If I frame the entire
script sub routines and all it won't run.
If I frame all of the basic script and put the END RUN in front of
subroutines the subs fail.
I also ran into this with folder actions. How do you properly frame a script
so that the subroutines continue to run.
Dan
--
Dan Doughtie
Business Analyst
Augusta GA
_______________________________________________
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.