ExtendScript Harden Variables
Hi.
Does anybody know how to harden variables in ExtendScript ?
Hi.
Does anybody know how to harden variables in ExtendScript ?
🙂
I have this function and not able to go forward. do you have any suggestion ?
function HardenVariables(doc)
{
var varObj = doc.FirstVarInDoc;
while (varObj.id != 0) {
oNextVar = varObj.NextVarInDoc
// Harden Variables --------
varObj = oNextVar;
}
}
I am still not sure what you mean by "Harden". If you want to programmatically convert variables to text, you can do something like this:
var doc, varFmt;
doc = app.ActiveDoc;
varFmt = doc.GetNamedVarFmt ("Test");
varFmt.Delete ();This will convert any "Test" variables to text. Note that you can't delete System Variable formats; only User Variable formats.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.