I am running into an issue (mind you I am VERY NEW to this whole Scripting jazz). I have this at the end of a script I am working on:
app.executeMenuCommand("Horizontal Align Center");
app.executeMenuCommand("Vertical Align Center");
// ADD 1/8" BLEED
var idoc = app.activeDocument;
var ipath = idoc.selection;
xmlstring = '<LiveEffect name="Adobe Offset Path"><Dict data="R mlim 4 R ofst 9 I jntp 2 "/></LiveEffect>';
For some reason, the XML string with the LiveEffect is preventing anything from happening AFTER it takes places. Ideally I'd like to have the script expand the object, then change one layer's order at the very end, but nothing inputted after this container will work.
Any help would be greatly appreciated. I'd love to have the last two processes happen without doing them manually or writing an additional script.