Skip to main content
Participant
Mar 1, 2019 12:21 PM UTC
Question

Framemaker script

Hi, Can anyone get me jsx coding to open bunch of files in Framemaker?

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

Participant
Mar 4, 2019 6:11 AM UTC

Hi, I've used the below code to open the files, but getting an error saying "Internal Error 15024. FrameMaker has detected a serious problem and must quit."

var path = ChooseFile("Browse for file", "", "", Constants.FV_ChooseOpenDir);

var InputFiles = get_File(path,[],['.*'],"FILE");

for(var i=0;i<InputFiles.length;i++){

                  Open(InputFiles,false);

}

Translate
4everJang
Legend
Mar 4, 2019 9:46 AM UTC

Hello Raj,

From the source lines you are showing it is obvious to me that you have not read the Scripting Guide, and you have not used the search on this forum to find an answer that has already been given.

The Scripting Guide specifies which parameters the Open( ) method requires, and you are not providing them. Please try to use the Guide before you post your requests for help on this forum. We all have jobs to do and even though we are willing to help newbies, we should not be spending our time repeating what was said before or what is written in the Scripting Guide.

Kind regards and good luck with the learning curve

4everJang

Translate
Participant
Mar 1, 2019 1:05 PM UTC

Hi Russ,

I have already checked on this site and am still unable to open all the files.

Looking forward you help here.

Thanks,

Raj

Translate
frameexpert
Community Expert
Community Expert
Mar 1, 2019 1:46 PM UTC

Always start with the smallest possible task. Can you open one file? If not, why not? What is going wrong?

Translate
www.frameexpert.com
Participant
Mar 4, 2019 6:32 AM UTC

Hi,

     I also getting the same problem.. While opening the file "Serious occurs and it quits the process..

Thanks,

Praveen

Translate
Legend
Mar 1, 2019 12:40 PM UTC

Hi, I have a basic sample here on how to open a single file:

FrameMaker ExtendScript Samples - West Street Consulting

Might give you some ideas.

Russ

Translate