如何使用Applescript在Illustrator中向文本框添加笔划?

如何使用Applescript在Illustrator中向文本框添加笔划?,applescript,border,adobe-illustrator,stroke,Applescript,Border,Adobe Illustrator,Stroke,以上代码用于使用Applescript在Illustrator中创建文本。如何向创建的文本框添加笔划或边框。如有任何推荐或建议,我们将不胜感激 所以很难说出你想要什么 您是否正在尝试向文本框的外部添加笔划,就像在“外观”面板中一样?像这样的 如果是这样,那你就不走运了。无法从脚本()中访问额外的笔划和填充 但也许你只是想在文本上画一笔,给它一个轮廓。像这样的 在这种情况下,这就是要使用的AppleScript set mytexts to make new text frame with p

以上代码用于使用Applescript在Illustrator中创建文本。如何向创建的文本框添加笔划或边框。如有任何推荐或建议,我们将不胜感激

所以很难说出你想要什么

您是否正在尝试向文本框的外部添加笔划,就像在“外观”面板中一样?像这样的

如果是这样,那你就不走运了。无法从脚本()中访问额外的笔划和填充

但也许你只是想在文本上画一笔,给它一个轮廓。像这样的

在这种情况下,这就是要使用的AppleScript

set mytexts to make new text frame with properties {contents:"Annonation " & g & ":" & param_Text, kind:area text, position:{(-150), (new_Var)}, width:(checkValue3 - checkValue1), name:"notes"}
文本路径

tell application "Adobe Illustrator"
            -- customize this as needed for your app
    set theFrame to (make new text frame in current document with properties ¬
        {contents:"My text", kind:area text, name:¬
            "notes"})
    set theRange to text range of theFrame
    set stroke color of theRange to {red:45, green:20, blue:128}
end tell

在您的问题中包含更多的代码,最好使用一个针对Illustrator的工作代码段来简化它(硬编码所有这些变量)。让我们尽可能容易地测试代码将增加您获得答案的机会。@adamh我没有更多代码来创建文本框。其他为
If
Else
条件。上面的代码可以在Illustrator中编写文本框。
set properties of text path of mytexts to {stroked:true, stroke width:0.1}