Skip to main content
lathac41153227
Participating Frequently
July 14, 2018
Question

End script using extendscript.

  • July 14, 2018
  • 1 reply
  • 504 views

Hi,

How to end the script using extendscript in framemaker ? I have attached below code.It will not "Exit".Please suggests if any ideas.

var oDoc = app.ActiveDoc;

var frameDocumentName = oDoc.Name;

    if (frameDocumentName == null) {

       alert("Please open a document before running this script.");

}

main();

function main() {  

    getFileName(framemakerFolder);

    CreateWindow();

    pageCount = CountPage(oDoc);

}

This topic has been closed for replies.

1 reply

frameexpert
Community Expert
Community Expert
July 14, 2018

Hi, This isn't a complete script so it is not clear what you are trying to do. Can you post more complete code, or explain what you mean that the code won't exit? Thanks. -Rick

www.frameexpert.com