
CHAPTER 8: ExtendScript Tools and Features Dollar ($) object 219
colorPicker()
$.colorPicker (name)
Invokes the platform-specific color selection dialog, and returns the selected color as a
hexadecimal RGB value:
0xRRGGBB.
name: The color to be preselected in the dialog, as a hexadecimal RGB value
(
0xRRGGBB), or -1 for the platform default.
Number
evalFile()
$.evalFile (path[, timeout])
Loads a JavaScript script file from disk, evaluates it, and returns the result of evaluation.
path: The name and location of the file.
timeout: Optional. A number of milliseconds to wait before returning undefined, if
the script cannot be evaluated. Default is 10000 milliseconds.
Any
gc()
$.gc ()
Initiates garbage collection in the JavaScript engine.
undefined
getenv()
$.getenv (envname)
Retrieves the value of the specified environment variable, or null if no such variable is
defined.
envname: The name of the environment variable.
String
setenv()
$.setenv (envname, value)
Sets the value of the specified environment variable, if no such variable is defined.
envname: The name of the environment variable.
value: The new value, a string.
undefined
sleep()
$.sleep (milliseconds)
Suspends the calling thread for the given number of milliseconds.
milliseconds: The number of milliseconds to wait.
During a sleep period, checks at 100 millisecond intervals to see whether the sleep should
be terminated. This can happen if there is a break request, or if the script timeout has
expired.
undefined
Function Return type
Comentarios a estos manuales