• 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
On Run handlers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: On Run handlers
      • From: Michael Terry <email@hidden>
    • Re: On Run handlers
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Colonic irrigation (OS X)
  • Next by Date: Re: Finding out is an Application is running
  • Previous by thread: Re: Colonic irrigation (OS X)
  • Next by thread: Re: On Run handlers
  • Index(es):
    • Date
    • Thread