Smart Connection (WoodWing) migration problem
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.
In this workflow we use a javascript (beforeSaveLayout.jsx) which performs a couple of tasks before the document is saved to the WoodWing-server.
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); | ||
| for(var n=0;n<myPage.allPageItems.length;n++) | ||
| { | ||
| if(myPage.allPageItems | ||
| { | ||
| var myTextFrameLinks = myPage.allPageItems | ||
| break; | ||
| } | ||
| } |
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.
Erwin
