我正在尝试更改TextExpander应用程序对象中的属性值,但无法

时间:2019-12-17 13:07:57

标签: applescript textexpander

我创建了大量TextExpander代码段,但字体错误。使用AppleScript,我想使用以下脚本来更改组中所有摘要的富文本格式的字体:

use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions

tell application "TextExpander"
    repeat with s in snippets of group "Math"
        set font of rich text expansion of s to "ArialUnicodeMS"
    end repeat
end tell

使用Apple的on脚本编辑器或Late Night Software的Script Debugger,我可以枚举摘要。但是我无法更改font属性,而TextExpander词典清楚地表明font属性具有“ get”和“ set”操作。

但是在调试器的属性中,我看到一个小的“只读”图标(铅笔上有一条红色的对角线)

我做错了什么,或者更好的是,我做错了什么?

0 个答案:

没有答案