• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ExtendScript - Change starting engine

Community Beginner ,
Feb 07, 2018 Feb 07, 2018

Copy link to clipboard

Copied

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:
adobe_zielengine.png
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

TOPICS
Scripting

Views

627

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
community guidelines

correct answers 1 Correct answer

Enthusiast , Feb 07, 2018 Feb 07, 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

Votes

Translate

Translate
Enthusiast ,
Feb 07, 2018 Feb 07, 2018

Copy link to clipboard

Copied

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

Votes

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
community guidelines
Community Beginner ,
Feb 07, 2018 Feb 07, 2018

Copy link to clipboard

Copied

Hi Ian,

thanks a lot! It worked perfectly.


Selim

Votes

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
community guidelines
Community Expert ,
Feb 07, 2018 Feb 07, 2018

Copy link to clipboard

Copied

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.

Votes

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
community guidelines
Community Beginner ,
Feb 07, 2018 Feb 07, 2018

Copy link to clipboard

Copied

Thanks! This generic way is also a nice solution

Votes

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
community guidelines
New Here ,
Jul 31, 2020 Jul 31, 2020

Copy link to clipboard

Copied

LATEST

Hi Ian,

Is it possible to set architecture 32bit or 64bit?

Thanks

Votes

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
community guidelines