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

How can setting [Update Link when Saving Document] =True?

Enthusiast ,
Nov 23, 2023 Nov 23, 2023

I want add TextFrame is link content to TextFrame 1 and allow auto update when save file.

I had try setting linkedPageItemOptions.updateLinkWhileSaving=true; But it not ok.

daitranthanhoa_0-1700792000909.png

 

This is my code:

 

var doc=app.documents[0];
var txt_base=doc.pages[0].textFrames[0];
var oPage=doc.pages[0];
var oBounds= txt_base.visibleBounds;
for(var i=1;i<4;i++)
{
var page2=doc.pages.add();
var txt2=page2.textFrames.add();
txt2.contentPlace(txt_base,true,true);
txt2.linkedPageItemOptions.updateLinkWhileSaving=true;
txt2.visibleBounds=oBounds;
}

 

How can setting [Update Link when Saving Document] =True?

TOPICS
Scripting
309
Translate
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 , Nov 27, 2023 Nov 27, 2023

I had can setting [Update Link when Saving Document] =True by this script:

txt2.contentPlace(txt_base,false,true);
txt2.parentStory.linkedStoryOptions.updateWhileSaving = true;

Translate
Enthusiast ,
Nov 23, 2023 Nov 23, 2023

I had try debug script and get:  txt2.linkedPageItemOptions.updateLinkWhileSaving

But i can't and show message: The property is not applicable in the current state.

Translate
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
Enthusiast ,
Nov 27, 2023 Nov 27, 2023
LATEST

I had can setting [Update Link when Saving Document] =True by this script:

txt2.contentPlace(txt_base,false,true);
txt2.parentStory.linkedStoryOptions.updateWhileSaving = true;

Translate
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