Skip to main content
daitranthanhoa
Inspiring
November 23, 2023
Answered

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

  • November 23, 2023
  • 1 reply
  • 295 views

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.

 

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?

This topic has been closed for replies.
Correct answer daitranthanhoa

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

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

1 reply

daitranthanhoa
Inspiring
November 24, 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.

daitranthanhoa
daitranthanhoaAuthorCorrect answer
Inspiring
November 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;