2 Replies Latest reply on Jan 4, 2011 11:21 AM by KeithGilbert

    [JS CS5] UserInteractionLevels not working with placeXML

    KeithGilbert Level 1

      I've included "app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll" at the beginning of my script, because I WANT the script to stop whenever a dialog or alert is shown.

       

      But it doesn't work when I use the "myDoc.xmlElements.item(0).xmlElements.item(0).placeXML(myFrame)" command to place imported XML content into a frame. The XML file references a bunch of graphic images, and those images are missing. If I place the XML by hand (without the script) into the frame, I get a dialog box asking me for the location of each missing graphic. But when the XML is placed by the script, it just quietly races ahead and ignores the missing graphics.

       

      I see in the object model there is also an "importExportEvent.userInteractionLevel", but I can't make heads or tails of this.

       

      Any ideas?