• 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: julifos <email@hidden>
  • Date: Wed, 10 Sep 2003 10:07:51 +0200

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

  • Follow-Ups:
    • Re: delay procedure for waiting less than a second
      • From: Leo <email@hidden>
  • Prev by Date: Re: Dates gone wild
  • Next by Date: Re: Calling a script object
  • Previous by thread: Re: printable docu about extensions, etc
  • Next by thread: Re: delay procedure for waiting less than a second
  • Index(es):
    • Date
    • Thread