• 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
Re: delay procedure for waiting less than a second
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delay procedure for waiting less than a second


  • Subject: Re: delay procedure for waiting less than a second
  • From: Leo <email@hidden>
  • Date: Wed, 10 Sep 2003 23:32:53 +1000

thanks for the tip with getMilliSec.

i even found the scriptinmg addtion (http://osaxen.com/getmillisec.html) but it doesn't seem to work on my os x imac:

after moven the scriptingaddtion in the scripting addition foilder i can't access it via open directory. i get the error msg box;

"could not read getmillsec.osax beacuase its not scriptable."

any idea?


julifos wrote:

in a volume fadeout script for itunes i want to wait for a very short time,
sth like 100 milliseconds or so.



I wouldn't use a timer for 100 milliseconds, but some fake-timer, such as:

#############
repeat 20000 times
set x to 5 * 5
end repeat
#############

Anyway, you can install any millitimer-capable tool, such as "GetMilliSec"
osax and try this:

#############
set init to GetMilliSec
repeat
if ((GetMilliSec) - 100) > init then exit repeat
end repeat
#############

jj
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Re: delay procedure for waiting less than a second (From: julifos <email@hidden>)

  • Prev by Date: Re: checking for characters
  • Next by Date: Re: Dates gone wild
  • Previous by thread: Re: delay procedure for waiting less than a second
  • Next by thread: Re: delay procedure for waiting less than a second
  • Index(es):
    • Date
    • Thread