Skip to main content
frameexpert
Community Expert
Community Expert
December 17, 2011
Answered

Command line from ExtendScript

  • December 17, 2011
  • 2 replies
  • 2942 views

I would like to call a command line from a FrameMaker ExtendScript script. Is this possible? Any help or pointers will be appreciated. Thanks.

Rick Quatro

This topic has been closed for replies.
Correct answer Wiedenmaier

Hi Rick,

AFAIK there's no direct way to call a process with parameters by ExtendScript.

If want to call a process without parameters, you can execute this file with method "execute" with is provided by "File" class .

If I have to call this process with parameters, I write write a batch file by script and execute this file.

Bye

Markus

2 replies

Inspiring
April 16, 2012

For future reference, there's an example of creating and executing a batch file in ~\Adobe RoboHelp 9\RoboHTML\presets\scripts\ePub Generator.jsx.

WiedenmaierCorrect answer
Inspiring
December 17, 2011

Hi Rick,

AFAIK there's no direct way to call a process with parameters by ExtendScript.

If want to call a process without parameters, you can execute this file with method "execute" with is provided by "File" class .

If I have to call this process with parameters, I write write a batch file by script and execute this file.

Bye

Markus

frameexpert
Community Expert
Community Expert
December 17, 2011

Thanks Markus. That is very helpful.