Oleg Butrin
20 лет на форуме
- Сообщения
- 1 993
- Реакции
- 1 224
Ответ: Как вообще скрипт прицепить к InDesign?
myParagraph.tables[номер].cells[номер].paragraphs[номер]
myParagraph.tables[номер].cells[номер].paragraphs[номер]
myFile = new File (filepath);
myText.insertionPoints[номер].place(myFile, [дополнительные опции]);
with (app) {
var myDoc = activeDocument;
for (storyCounter = 0; storyCounter < myDoc.stories.length; storyCounter++) {
var myStory = myDoc.stor[COLOR=Red]ies[/COLOR][storyCounter];
}
}
myFile = new File ("D:\\Sve\\Project\\OurCity\\nDesign\\Онлайн 8.tif");
myParagraphs[2].contents="^p"+myParagraphs[2].contents;
myParagraphs[2].place(myFile);
myParagraphs[2].applyStyle("Adver 8");
myParagraphs[0].contents = "\u000D" + myParagraphs[0].contents;
myStyle = activeDocument.paragraphStyles.item('Text 3');
myParagraphs[0].applyStyle(myStyle);
function recurseFolder(folder, name) {
alert(folder);
var myFolder=new Folder(folder);
if (myFolder==null)
return name;
var files=myFolder.getFiles();
for (var i=0;i<files.length;i++) {
var tmpFolder=new Folder(files[i]);
name+=files[i].name;
if (tmpFolder!=null) {
name+=" - isFolder\r\n";
recurseFolder(files[i], name);
delete(tmpFolder);
}
else
name+="\r\n";
}
return name;
}
alert(recurseFolder("D:\\Sve\\Project\\OurCity\\nDesign\\",""));