Quote:
btw.. I have noticed that I can ONLY save Text Input field text that is stored in a variable to the Disc File as there is no option for transferring the content of a variable to the Text to File option!!!
here is what the Help File (useful) has to say.Quote:
The Write to Disk File action allows you to write information in a variable to a disk file. A disk file is a plain text file (a file with the .txt file extension).
Note:
You can write to the same disk file as often as you like. In other words, information from a variety of variables (or even the same variable which may have new data in it) can be appended to the end of the disk file. Alternatively, new data can overwrite the existing data on the disk file.
There is also a Write Text to File action if you want to enter text in a file without using a variable to store the data.
My take on it is that the creators of Opus products realized that having a way to handle these subtly different situations... would help developers.
Maybe I can explain it another way, although the following references using opusscript... you may get the idea.
I can have a TextObject. If I originally set it up using 'Insert Variable' when I am building a Page... then all I have to do it change the value of the variable and ALL the text in the box will be updated.
However, another method or approach I may choose to use is to initially fill the Text Object with some static text. Later when the Pub is running, I may use textObject.SetSelection( Start, End ) and textObject.GetSelection( ) commands --- to select a portion of whatever text is in the object... and then use textObject.ReplaceSelection( StringValue ) to 'insert' or 'append' etc. whatever changed text I want. That could be a few characters, or many pages of text.
The point being.... how much granularity do I want for this operation.
That is the nice thing about Opus, there is a great level of detailed control if I want it, and then there are simplified actions in this case to replace the whole content simply with a change of the variable.
I think that is analogous to your situation with writing to a file (or to disk).