Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
yield time: give processor time to other applications (new in 1.03)
Syntax
yield time delayValue
Parameters
delayValue -- integer for amount of time to yield (approximately 60ths of a second)
Result
true
Examples
repeat while name of (get info window 1) is "Progress"
yield time 60
end repeat
Notes
- This verb is most useful when an application is running a compute-intensive task that must be completed before the script continues. See the new "many ways to wait" example scripts for details.
- If only Player is running, the delay represents "ticks" (60ths of a second). With compute-intensive apps running (the usual case), it might be much longer. Each "tick" that Player yields gives the app a chance to use the processor. Once the app grabs the processor, it will generally use much more than 1/60 of a second.
- In many ways, this verb is the opposite of set forced yield; this gives time from AppleScript to other apps, set forced yield forces another app to yield the processor to AppleScript and Player.
See Also
set forced yield
get info
exists
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.