Global

Members

(constant) DESKTOP_DIR :string

Pass crdtuxp.DESKTOP_DIR into crdtuxp.getDir() to get the path of the user's Desktop folder.
Source:
Type:
  • string

(constant) DNS_NAME_FOR_LOCALHOST :string

localhost.tgrg.net resolves to 127.0.0.1

The Tightener daemon manages the necessary certificate for https
Source:
Type:
  • string

(constant) DOCUMENTS_DIR :string

Pass crdtuxp.DOCUMENTS_DIR into crdtuxp.getDir() to get the path of the user's Documents folder.
Source:
Type:
  • string

(constant) HOME_DIR :string

Pass crdtuxp.HOME_DIR into crdtuxp.getDir() to get the path of the user's home folder.
Source:
Type:
  • string

(constant) LOG_DIR :string

Pass crdtuxp.LOG_DIR into crdtuxp.getDir() to get the path of the Tightener logging folder.
Source:
Type:
  • string

(constant) LOG_LEVEL_ERROR :number

Setting log level to crdtuxp.LOG_LEVEL_ERROR causes all log output to be suppressed,
except for errors.
Source:
Type:
  • number

(constant) LOG_LEVEL_NOTE :number

Setting log level to crdtuxp.LOG_LEVEL_NOTE causes all log output to be suppressed,
except for errors, warnings and notes.
Source:
Type:
  • number

(constant) LOG_LEVEL_OFF :number

Setting log level to crdtuxp.LOG_LEVEL_OFF causes all log output to be suppressed.
Source:
Type:
  • number

(constant) LOG_LEVEL_TRACE :number

Setting log level to crdtuxp.LOG_LEVEL_TRACE causes all log output to be output.
Source:
Type:
  • number

(constant) LOG_LEVEL_WARNING :number

Setting log level to crdtuxp.LOG_LEVEL_WARNING causes all log output to be suppressed,
except for errors and warnings.
Source:
Type:
  • number

(constant) PORT_TIGHTENER_DAEMON :number

The Tightener daemon listens for HTTPS connections on port 18888.
Source:
Type:
  • number

(constant) SYSTEMDATA_DIR :string

Pass crdtuxp.SYSTEMDATA_DIR into crdtuxp.getDir() to get the path of the system data folder
(%PROGRAMDATA% or /Library/Application Support).
Source:
Type:
  • string

(constant) TMP_DIR :string

Pass crdtuxp.TMP_DIR into crdtuxp.getDir() to get the path of the temporary folder.
Source:
Type:
  • string

(constant) TQL_SCOPE_NAME_DEFAULT :string

The Tightener daemon provides persistent named scopes (similar to persistent ExtendScript engines).

When executing multiple TQL scripts in succession a named scope will retain any globals that
were defined by a previous script.
Source:
Type:
  • string

UNIT_NAME_CICERO

crdtuxp.UNIT_NAME_CICERO for ciceros
Source:

UNIT_NAME_CM

crdtuxp.UNIT_NAME_CM for centimeters
Source:

UNIT_NAME_INCH

crdtuxp.UNIT_NAME_INCH for inches.
Source:

UNIT_NAME_MM

crdtuxp.UNIT_NAME_MM for millimeters
Source:

UNIT_NAME_NONE

crdtuxp.UNIT_NAME_NONE represents unit-less values.
Source:

UNIT_NAME_PICA

crdtuxp.UNIT_NAME_PICA for picas
Source:

UNIT_NAME_PIXEL

crdtuxp.UNIT_NAME_PIXEL for pixels
Source:

UNIT_NAME_POINT

crdtuxp.UNIT_NAME_POINT for points
Source:

(constant) USERDATA_DIR :string

Pass crdtuxp.USERDATA_DIR into crdtuxp.getDir() to get the path to the user data folder
(%APPDATA% or ~/Library/Application Support).
Source:
Type:
  • string

Methods

charCodeToUTF8__(in_charCode) → {array}

Internal: convert a Unicode character code to a 1 to 3 byte UTF8 byte sequence
Source:
Parameters:
Name Type Description
in_charCode number a Unicode character code
Returns:
Type:
array
an array with 1 to 3 bytes

enQuote__(s_or_ByteArr, quoteChar) → {string}

Internal: Escape and wrap a string in quotes
Source:
Parameters:
Name Type Description
s_or_ByteArr string | Array a string or a byte array
quoteChar string a string with a single character to use for quoting ("'" or '"')
Returns:
Type:
string
an string

fileAppend_(filePath, data)

(Internal) Inefficient file append, for debugging use
Source:
Parameters:
Name Type Description
filePath string file to append to
data string string to append

getSysInfo__() → {object}

Internal function. Query the Tightener daemon for system information
Source:
Returns:
Type:
object
system info