Copy link to clipboard
Copied
Copy link to clipboard
Copied
myStyles = doc.paragraphStyles;
try {
for (i = (myStyles.length -1); i > 0; i--) {
myStyles.remove();
}
} catch (e) {}
myStyles = doc.paragraphStyles;
for (i = (myStyles.length -1); i > 1; i--) {
myStyles.remove();
}
Copy link to clipboard
Copied
if (app.version != 3) {
app.select(theStory.paragraphs.insertionPoints[-2],SelectionOptions.replaceWith);
} else {
app.select(theStory.paragraphs.insertionPoints[-2],SelectionOptions.replace);
}
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
if (app.selection.length >= 0) {
var mySel = app.selection;
app.select(null);
}
app.layoutWindows[0].zoom(ZoomOptions.fitPage);
app.layoutWindows[0].zoomPercentage = 191;
try {
app.select(mySel);
} catch (e) {};
if (app.selection.length >= 0) {
var mySel = app.selection;
app.select(null);
}
app.layoutWindows[0].zoom(ZoomOptions.fitPage);
app.layoutWindows[0].zoomPercentage = 191;
try {
app.selection = makeArray(mySel);
} catch (e) {};
function makeArray(theSel) {
var myArray = new Array();
var theLim = theSel.length;
for (j=0; theLim>j; j++) {
myArray.push(theSel);
}
return myArray
}
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
myTopic.pageReferences.add(myStory, myIndex, PageReferenceType.currentPage);
myTopic.pageReferences.add(myStory.insertionPoints[myindex], PageReferenceType.currentPage);
Copy link to clipboard
Copied
myItems = app.activeDocument.search( 'wildebeest' )
for( i = myItems.length-1; i > -1; i-- )
myTopic.pageReferences.add( myItems, pageReferenceType.currentPage )
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied