CS3でstoryPreferences.frameTypeが効かない
テキストの自動流し込みで。
VBSでは前々から分かってたんだけども、JavaScriptでもやっぱり同じだった。
var doc = app.open("G:/example/example.indt",true);
doc.storyPreferences.frameType=1179087984; //フレームグリッドに設定
doc.spreads[0].place ("G:/example/example.txt", [x, y],"レイヤー 1",false,true);
で、タグ付きテキストを流し込むスクリプトで、CS2まではちゃんとフレームグリッドに流し込まれていたのに、CS3ではどうしてもテキストフレームになってしまう。
しょうがないので流したあとからフレームグリッドに変更している。
var doc = app.open("G:/example/example.indt",true);
doc.spreads[0].place ("G:/example/example.txt", [x, y],"レイヤー 1",false,true);
doc.stories[0].storyPreferences.frameType = 1179087984;
そうするとページ数が減るので
for (i = doc.spreads.length-1 ; i>-1 ; i--){
if (doc.spreads[i].textFrames[0].contents != "" ){
break;
} else {
doc.spreads[i].remove();
}
}
なんてことをしてるんだが、本当はどうしたらいいんだろ。