Highlighted

CJK InDesign scripting: about the FrameType.FRAME_GRID_TYPE

Community Beginner ,
Mar 10, 2020

Copy link to clipboard

Copied

Dear friends,

Is there a way using the InDesing javascipt to switch a textframe back and forth from the type of  FrameTypes.FRAME_GRID_TYPE to FrameTypes.TEXT_FRAME_TYPE in the CJK version of InDesign?

 

I have tried to write a script creating a InDesign document with textframes in the type of  FrameTypes.FRAME_GRID_TYPE.
But the textframe on the first page was always in the type of FrameTypes.TEXT_FRAME_TYPE.
I am trying to switch the textframe to the type of FrameTypes.FRAME_GRID_TYPE, but still in struggle.

Need your help. Thanks.

Correct answer by CIC-n3mcHB | Community Beginner

Solved:
In CJK version of InDesign, after creating the document:

var myDoc = app.documents.add();

 

1) Find the text frame
2) Find the parentStory of the text frame
3) Find the storyPreferences of the story
4) Set the value of the variable frameType to FrameTypes.FRAME_GRID_TYPE or FrameTypes.TEXT_FRAME_TYPE, according to the need.

Views

17

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

CJK InDesign scripting: about the FrameType.FRAME_GRID_TYPE

Community Beginner ,
Mar 10, 2020

Copy link to clipboard

Copied

Dear friends,

Is there a way using the InDesing javascipt to switch a textframe back and forth from the type of  FrameTypes.FRAME_GRID_TYPE to FrameTypes.TEXT_FRAME_TYPE in the CJK version of InDesign?

 

I have tried to write a script creating a InDesign document with textframes in the type of  FrameTypes.FRAME_GRID_TYPE.
But the textframe on the first page was always in the type of FrameTypes.TEXT_FRAME_TYPE.
I am trying to switch the textframe to the type of FrameTypes.FRAME_GRID_TYPE, but still in struggle.

Need your help. Thanks.

Correct answer by CIC-n3mcHB | Community Beginner

Solved:
In CJK version of InDesign, after creating the document:

var myDoc = app.documents.add();

 

1) Find the text frame
2) Find the parentStory of the text frame
3) Find the storyPreferences of the story
4) Set the value of the variable frameType to FrameTypes.FRAME_GRID_TYPE or FrameTypes.TEXT_FRAME_TYPE, according to the need.

Views

18

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 10, 2020 0
Community Beginner ,
Mar 10, 2020

Copy link to clipboard

Copied

Solved:
In CJK version of InDesign, after creating the document:

var myDoc = app.documents.add();

 

1) Find the text frame
2) Find the parentStory of the text frame
3) Find the storyPreferences of the story
4) Set the value of the variable frameType to FrameTypes.FRAME_GRID_TYPE or FrameTypes.TEXT_FRAME_TYPE, according to the need.

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 10, 2020 1