Good day to you all,
I'm struggling with a problem and hope that someone (or more than one) can give me a hand.
I'm working at a prepress studio where we have a number of productions in a WoodWing-workflow.
One of our (older) clients was still working in a CS3-workflow and now has to be migrated to CS5.
This script has to be changed for working with Indesign CS5.
One issue that had to be rewritten was the filling of the footer on the masterpage with some metadata from the WoodWing-server.
The frame (in CS3) was addressed directly by the label-name in the layout.
|var myTextFrameLinks||= myDoc.masterSpreads.item(0).pages.item(0).textFrames.item("voetregel_links");|
This no longer works in CS5 js-scripting. I've changed it into the following:
|var myPage = myDoc.masterSpreads.item(0).pages.item(0);|
|if(myPage.allPageItems[n].constructor.name == "TextFrame" && myPage.allPageItems[n].label == "voetregel_links")|
|var myTextFrameLinks = myPage.allPageItems[n];|
When I test this script "stand-alone" on a document it works well but when I use it in the WoodWing-workflow I get the following message twice:
(Unable to save the document. It could be in use by another programme .........)
I check-in the document, the beforeSaveLayout.jsx is totaly executed and the document is closed.
Than the bussy-icon (the spinning pinwheel) appears for a while, the messages appears, I press ok, the bussy-icon appears again and the same message re-appears.
The timestamp on the server is updated but the document has not been saved.
Any suggestion, tips or similar experiences?
Help would be much appreciated.
Hi Erwin PPMG,
I'll be available through e-mail, please feel free to contact me at firstname.lastname@example.org. I look forward to assisting you.