Highlighted

End script using extendscript.

Community Beginner ,
Jul 14, 2018

Copy link to clipboard

Copied

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);

}

TOPICS
Scripting

Views

231

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

End script using extendscript.

Community Beginner ,
Jul 14, 2018

Copy link to clipboard

Copied

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);

}

TOPICS
Scripting

Views

232

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 14, 2018 0
Adobe Community Professional ,
Jul 14, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 14, 2018 0