Highlighted

Framemaker script

New Here ,
Mar 01, 2019

Copy link to clipboard

Copied

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

TOPICS
Scripting

Views

1.6K

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

Framemaker script

New Here ,
Mar 01, 2019

Copy link to clipboard

Copied

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

TOPICS
Scripting

Views

1.6K

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
Mar 01, 2019 0
Mentor ,
Mar 01, 2019

Copy link to clipboard

Copied

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

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...
Mar 01, 2019 0
New Here ,
Mar 01, 2019

Copy link to clipboard

Copied

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

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...
Mar 01, 2019 0
Adobe Community Professional ,
Mar 01, 2019

Copy link to clipboard

Copied

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

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...
Mar 01, 2019 0
New Here ,
Mar 03, 2019

Copy link to clipboard

Copied

Hi,

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

Thanks,

Praveen

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...
Mar 03, 2019 0
Enthusiast ,
Mar 04, 2019

Copy link to clipboard

Copied

Hi Raj, hi Praveen,

please help us to help you and give us more informations:

- have you managed to open ONE file? (Russ' example and Ricks question above)

- did you debug step by step?

- at which point you get the problem?

- How does you "var InputFiles" look like? Array of Strings?

- how does your function "get_File" look like?

etc.etc.

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...
Mar 04, 2019 0
New Here ,
Mar 03, 2019

Copy link to clipboard

Copied

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

}

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...
Mar 03, 2019 0
Advocate ,
Mar 04, 2019

Copy link to clipboard

Copied

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

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...
Mar 04, 2019 1