• 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
Delay x return, how reliable, fast or slow is Applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Delay x return, how reliable, fast or slow is AppleScript?
      • From: Jon Pugh <email@hidden>
    • Re: Delay x return, how reliable, fast or slow is Applescript?
      • From: Doug McNutt <email@hidden>
    • Re: Delay x return, how reliable, fast or slow is Applescript?
      • From: Emmanuel <email@hidden>
  • Prev by Date: delete iPhoto photos
  • Next by Date: Insertion Point in Quark
  • Previous by thread: delete iPhoto photos
  • Next by thread: Re: Delay x return, how reliable, fast or slow is Applescript?
  • Index(es):
    • Date
    • Thread