Hi to all,
The initial issue has the same revision number and revision date.I can not do this with a variable because the list of paragraphs does not get information from master pages.The way I found to make this work is to have a separate flow or a text frame in every page (With its own paragraph format ,in this case LOEP).So when I generate a List of paragraphs , I get the List of effective pages.Now the "problem" is when I want to put the text frame in every page.I can copy the text frame, click on next page icon in frame maker,paste the text frame and go on until I reach the end of the document.So I thought to automate this with a script.
I think this is very simple to do ,but since I have no experience with javascript it is difficult for me.Anyway since I am an aircraft engineer and I like challenges I made some progress with my own script.
This is my try:
var doc = app.ActiveDoc;
if(doc.ObjectValid() == true)
{
doc.FirstBodyPageInDoc.FirstSelectedGraphicInDoc;
doc.Copy();
doc.CurrentPage=doc.FirstBodyPageInDoc.PageNext.PageNext;
doc.paste(0)
}
else
{
alert("No active document found. Cannot continue.");
}
alert("Script complete!");
But i have a problem with this because it pastes the selected Graphic in this case a text frame to the first page where I originally selected the object.When i run the script line by line I get to the point where I navigate to the correct page but when it executes the paste(0) ,it goes back to the first page.
The next step will be to loop this function until no other pages exist.
I hope now you can understand the task I want to automate.
Regards
Dimitris