Home › Forums › General XMetaL Discussion › Saved property › Reply To: Saved property
KdG November 23, 2011 at 10:27 am
Reply to: Saved propertyNovember 23, 2011 at 10:27 am
This can be reproduced with the journalist sample file “CamerasInFocus.xml”.
When you execute the script below (simply paste it into the document) the file ends up marked as “not saved”.
You can see this from the Save-button in the buttonbar, which appears as active (blue), although the file was saved properly by the script.
// XMetaL Script Language JSCRIPT:
var rng = ActiveDocument.Range;
rng.ContainerAttribute(“Id”) = “ABCD”;
ActiveDocument.Saved = true;
Application.Alert(“Final status Saved = “+ActiveDocument.Saved)