Call ExtendScript Script from FDK Client

Adobe Community Professional ,
May 06, 2020

Copy link to clipboard

Copied

Forgive me if this has been answered before, but can a FrameMaker ExtendScript script be called from a FrameMaker API client? Is it possible to pass parameters to a script this way? Thanks in advance.

TOPICS
Scripting

Views

953

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hi Rick,

 

You used to know how to do this with FrameScript... I figure it is about the same thing with the FDK using F_ApiCallClient()?

 

https://community.adobe.com/t5/framemaker/how-can-i-run-extendscript-in-framescript/td-p/10494772?pa...

 

There were more extensive discussions about this on the old yahoo dev group, including the question about passing parameters. I think the short answer was no, you can't pass parameters. Your client would have to write some file with whatever data, then the script reads it. If I remember.

 

Russ

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hey what do you know? I guess I answered my own question. Thank you for the pointer.

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hi Rick,

I am trying to call ExtandScript from FrameMaker API client. Based on thread information I tried to implement with following command

F_ApiCallClient("ScriptingSupport", "<path_to_sript>");
But it seems not to be working. Do you know if there is something I am doing wrong?

 

Thanks.

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hi again,

I found that this command is working. 

The reason of my fail was that I was forgetting to register .dll file in maker.ini, that is why could not see the result.

Thank you for information. 

Likes

Translate

Translate

Report

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