Delay x return, how reliable, fast or slow is Applescript?
Delay x return, how reliable, fast or slow is Applescript?
- Subject: Delay x return, how reliable, fast or slow is Applescript?
- From: Bernardo Hoehl <email@hidden>
- Date: Wed, 15 Dec 2004 11:54:21 -0200
Hi List!
There is some basic issues that I have not understood completely regarding a delay or return statement in applescript.
Sometimes I write a stay open app. that will hog the CPU if I use the "delay" command, and "return" will make it comsume less CPU power.
I know it works. But I have never really understood the WHY.
I am writing some code that I will use to control a stepper motor.
This means that I will be sending outputs to an eletrical circuit, and depending on how many signals I send will be the total rotations I achieve, depending on the sequence I send the signals will be the rotation (clockwise or counter-clockwise), and depending on the
delay in between signals will be the
speed of the rotation.
Questions:
1) Since applescript is a high level language, when compared to "C", How fast can the system handle delay statements? How precise or reliable can be my Applescript app?
2) What is the real difference between "delay" and "return" on a stay open app's loop?
3) If I don't declare a "delay" in a loop? How much time should I expect applescript to delay just after it has executed the last line of the loop and start executing the first line again?
Please forgive for asking basic questions...
Bernardo Höhl - Rio de Janeiro - Brazil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden