Text and Type
}
}
}
function myFindTag (myStyleName, myStyleToTagMapping){
var myTag = "";
var myDone = false;
var myCounter = 0;
do{
if(myStyleToTagMapping[myCounter][0] == myStyleName){
}
myCounter ++;
} while((myDone == false)||(myCounter < myStyleToTagMapping.length))
return myTag;
}
Text objects
The following diagram shows a view of InCopy's text-object model. There are two main types of text
object: layout objects (text frames) and text-stream objects (stories, insertion points, characters, and words,
for example). The diagram uses the natural-language terms for the objects; when you write scripts, you will
use the corresponding terms from your scripting language:
document
//Close the text file.
myTextFile.close();
}
myTag = myStyleToTagMapping[myCounter][1];
break;
story
insertion points
characters
words
lines
paragraphs
text columns
text style ranges
texts
notes
spread, page, layer
text containers
text frame
Text objects 34
insertion points
characters
words
lines
paragraphs
text columns
text style ranges
texts
notes