File synchronization and additional scripts

Since version 2.6.2, LaTeXiT can handle the synchronization of an underlying text file. Either this file has been open with the menu "File > Open… > Text file" (and option "continuously synchronize file content"), or, such a file has been created through "File > Save as…" and the same option.
In both cases:
-at each  LaTeXization, the file content is updated by the text defining the current equation
-or if the file is externally modified by another program, LaTeXiT is automatically updated with the new content
Please note that the synchronization is focused on the file name. If the file is renamed and a new file with the old name is created, then the synchronzation is made with the new file.

Moreover, in "Preferences > Advanced > Background synchronization", custom processes can be defined, either when LaTeXiT saves the underlying file content, or when it detects a new content in that file.
In those scripts, the variable $INPUTFILE is added in the enviromnent and contains the file name.