1 person found this helpful
Wow... From CS1 to CS5 is quite a step!
It seems that there are big changes to the label property and associated methods. As I read quickly now (editing my first message) it seems that there is a "name" property to use instead.
"All scripts that use item("label") to get at stuff will have to be rewritten."
Message was edited by: Andreas Jansson
If you want to find back a textframe in a textframes list (or a rectangle in a rectangles list), the parameter changed:
- in CS1 'reference' is the script label (can be edited in indesign via window -> utilities -> script label)
- in CS5 'reference' is the name of the item (can be edited in indesign via window -> Layers)
That might also be the reason why CS5 removes the script labels while converting a document from CS1 to CS5.
But I had a simple workaround with the script labels: I iterated through the list of textframes:
iCount := TFList.Count;
bFound := False;
while (not bFound) and (iIndex<=iCount) do
TF := TextFrame(TFList.Item[iIndex]);
if TF.Label_=sLabel then bFound := True;