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

Unlink child text frames from parent text frames in alternate layout

Community Beginner ,
Feb 17, 2022 Feb 17, 2022

Copy link to clipboard

Copied

We start with one layout (parent), 40 2-page spreads, and from that create an alternate layout (child). In the main body copy, there is a single paragraph that needs to be changed in the child layout. I can can copy/paste with no problem, but that gets old after about 20 spreads. I am writing an applescript that will do it automatically, but no matter what I do, whenever I automate changing the text, it changes it in both the parent and child spreads. The applescript will let me make all kinds of changes to the frame itself: fill color, font, size, etc. to the child spread without affecting the corresponding parent spread. So I know I'm targeting the correct text in the correct frames, it just won't let me change the copy content in the child layout independently from the parent layout. Is it possible to even do this manually? The document is set up for print, and we use the alternate layouts for copy variations - and I know, this is not what they were made for, but it works really well for our needs. 

TOPICS
Scripting

Views

170

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 ,
Mar 17, 2022 Mar 17, 2022

Copy link to clipboard

Copied

Can you post your script to the forum - perhaps one of the legendary scripters here on the forums can help you out.

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 ,
Mar 17, 2022 Mar 17, 2022

Copy link to clipboard

Copied

Hi @lenasal   You should be able to get a specified alternate layout’s pages like this:

 

 

 

--the name of your alternate "child" layout
set al to "My Alternate"

tell application id "com.adobe.indesign"
	tell active document
		set pgs to every page
		repeat with x in pgs
			if alternate layout of applied alternate layout of x is al then
				
				--code to change text in the alternate layout pages here
				set tf to every text frame of x
				
			end if
		end repeat
	end tell
end tell

 

 

 

 

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 ,
Mar 20, 2022 Mar 20, 2022

Copy link to clipboard

Copied

LATEST

Did you consider to use Primary Text Frames. These will reflow the text automatically when another Parent Page with Primary Text Frames is applied.

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