Skip to main content
Known Participant
February 7, 2018
Answered

ExtendScript - Change starting engine

  • February 7, 2018
  • 1 reply
  • 869 views

Hello friends,

i am currenly working on customizing FrameMaker with ExtendScript.

When I completely restart ExtendScript Toolkit, I always have to change the "main engine" (don't know if this is the correct term) of my script

from "ExtendScript Toolkit CC" to "Adobe FrameMaker 2017" via this panel:

Is there a way to modify the code, which implements this functionality automatically without user input as shown in the picture above?

Thanks a lot!

Selim

This topic has been closed for replies.
Correct answer Ian Proudfoot

Hi Selim,

Yes you can add a '#target directive' At the start of your script file like this:

#target "FrameMaker-14.0"

If all is well the script will be run in FrameMaker 2017.

The first dropdown lists all available target applications, the next dropdown will show all scripting engines available for the selected target. FrameMaker has one engine named "main".

Ian

1 reply

Ian Proudfoot
Ian ProudfootCorrect answer
Legend
February 7, 2018

Hi Selim,

Yes you can add a '#target directive' At the start of your script file like this:

#target "FrameMaker-14.0"

If all is well the script will be run in FrameMaker 2017.

The first dropdown lists all available target applications, the next dropdown will show all scripting engines available for the selected target. FrameMaker has one engine named "main".

Ian

selimc777Author
Known Participant
February 7, 2018

Hi Ian,

thanks a lot! It worked perfectly.


Selim

frameexpert
Community Expert
Community Expert
February 7, 2018

Or, you can use the more generic directive:

#target framemaker

This will always target the latest version of FrameMaker on your machine. If you include the version number in the directive, you will have to change your scripts when you upgrade FrameMaker.

www.frameexpert.com