EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificaciones Pagina 234

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 304
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 233
CHAPTER 8: ExtendScript Tools and Features Preprocessor directives 234
#include file
Includes a JavaScript source file from another location. Inserts the contents of the
named file into this file at the location of this statement. The
file argument is an
Adobe portable file specification. See Specifying paths
.
As a convention, use the file extension
.jsxinc for JavaScript include files. For
example:
#include "../include/lib.jsxinc"
To set one or more paths for the #include statement to scan, use the #includepath
preprocessor directive.
If the file to be included cannot be found, ExtendScript throws a run-time error.
Included source code is not shown in the debugger, so you cannot set breakpoints
in it.
#includepath
path
One or more paths that the #include statement should use to locate the files to be
included. The semicolon (
;) separates path names.
If a
#include file name starts with a slash (/), it is an absolute path name, and the
include paths are ignored. Otherwise, ExtendScript attempts to find the file by
prefixing the file with each path set by the
#includepath statement.
For example:
#includepath "include;../include"
#include "file.jsxinc"
Multiple #includepath statements are allowed; the list of paths changes each time
an
#includepath statement is executed.
As a fallback, ExtendScript also uses the contents of the environment variable
JSINCLUDE as a list of include paths.
Some engines can have a predefined set of include paths. If so, the path provided by
#includepath is tried before the predefined paths. If, for example, the engine has a
predefined path set to
predef;predef/include, the preceding example causes the
following lookup sequence:
file.jsxinc literal lookup
include/file.jsxinc first #includepath path
../include/file.jsxinc second #includepath path
predef/file.jsxinc first predefined engine path
predef/include/file.jsxinc second predefined engine path
#script name
Names a script. Enclosing quotes are optional, but required for names that include
spaces or special characters. For example:
#script SetupPalette
#script "Load image file"
The name value is displayed in the Toolkit Editor tab. An unnamed script is assigned a
unique name generated from a number.
#strict on
Turns on strict error checking. See the Dollar ($) object’s strict property.
Vista de pagina 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 303 304

Comentarios a estos manuales

Sin comentarios