Environment and System Info - zwettemaan/TightenerDocs GitHub Wiki

System info

A lot of Tightener system info is accessible by way of evalTQL. From a command line, try running

evalTQL "sysInfo()"

and inspect the resulting JSON data structure.

evalTQL output can easily be captured into an environment variable. For example, to access the current Tightener version, you can use

evalTQL "sysInfo().version"

Example command line script (Mac/Linux):

TIGHTENER_VERSION=`evalTQL "sysInfo().version"`
echo ${TIGHTENER_VERSION}

Example .bat script (Windows):

@ECHO off
FOR /f %%A IN ('evalTQL "sysInfo().version"') DO SET TIGHTENER_VERSION=%%A
ECHO %TIGHTENER_VERSION%

Tightener Version

sysInfo().version

Tightener Build Date

sysInfo().buildDate

Tightener Build Time

sysInfo().buildTime

Environment Variables

alias

On Mac and Linux, some of the commands provided by Tightener are implemented as aliases, rather than scripts.

For example, Windows has cd_settings.bat; Mac and Linux have an alias cd_settings.

These aliases include:

cd_id
cd_settings
cd_tightener
cd_samples
cd_scripts

To see these aliases:

cd_scripts
editFile setPathMac

or

cd_scripts
editFile setPathLinux

TIGHTENER_CONFIG_NODE_NAME

TIGHTENER_CONFIG_NODE_NAME is something that should be set to a meaningful name when installing Tightener.

On Mac you need to set it in .zshenv and .profile

On Linux you need to set it in .bashrc and .profile

On Windows you need to set it in your Windows environment. Go to Start and type 'edit environment' to bring up the environment. Add or modify TIGHTENER_CONFIG_NODE_NAME to be a descriptive name for the computer you're using.

This node name can then be used to make entries into the config.ini which are specific to this workstation.

This allows us to use a single, monolithic config.ini to be used on many computers, while still allowing each individual computer to have specific settings in the config.ini

For example, if my Linux computer has TIGHTENER_CONFIG_NODE_NAME=andy we could have in the config.ini:

[urlMap]
myInDesign = tgh:///indesign/main
myInDesign.andy = tgh://holly.rorohiko.com/indesign/main

which would configure myInDesign to refer to the local InDesign on all workstations, except for andy where myInDesign actually points to a remote myInDesign on a computer named holly.rorohiko.com.

This config.ini can be shared between all computers involved, and still, andy would know to reach out to holly to run InDesign scripts.

TIGHTENER_BINARIES

TIGHTENER_BINARIES is a path to where the binary executables for the installed Tightener are installed.

TIGHTENER_RELEASE_ROOT

TIGHTENER_RELEASE_ROOT is the base path of the installed Tightener.

TIGHTENER_SCRIPTS

TIGHTENER_SCRIPTS is the path to where the command line scripts for the installed Tightener are.

PATH

The PATH on a computer with Tightener will include the TIGHTENER_BINARIES and TIGHTENER_SCRIPTS directories.