我正在尝试重写 Indesign CS5.5 中的 CornerEffects.jsx 脚本,以使其在学校更加用户友好,因此人们确切地知道第一点在哪里以及最后一点在哪里等等。脚本必须在 CS3 中作为好。只有当矩形是选定对象时,我才需要更改选项,否则回退到默认值。我尝试了以下代码段,但无论如何它都会退回到默认值。多谢你们。
function myDisplayDialog(myObjectList){
if (app.selection.constructor.name == "Rectangle"){
var myStringList = ["all points","first point (top-left)", "last point(top-right)", "second point(bottom-left)", "third point(bottom-right)", "fourth point(top-right)", "first two", "second and third", "last two", "first and last", "odd points", "even points"]
}
else{
var myStringList = ["all points","first point", "last point", "second point", "third point", "fourth point", "first two", "second and third", "last two", "first and last", "odd points", "even points"]
}