nanitous
nanitous

Reputation: 711

I'm trying to change a property value in a TextExpander application object but can't

I've created a large number of TextExpander snippets but with the wrong font. Using AppleScript I want to change the font of all rich text expansion of the snippets in a group using the following script:

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

Using either Apple's on script editor or the Script Debugger of Late Night Software, I can enumerate the snippets fine. But I can't change the font property, while the TextExpander dictionary clearly indicates that the font property has a 'get' and 'set' operation.

But in the debugger the property I see a small "read only" icon (a pencil with a red diagonal line through it)

Am I doing something wrong or, better, what do I do wrong?

Upvotes: 0

Views: 72

Answers (0)

Related Questions