使用 Apple 脚本设置 PowerPoint 字体颜色

Setting PowerPoint font color with Apple Script

我正在尝试使用 Apple 脚本设置所有选定 PowerPoint 形状的字体颜色。我使用了与此类似的东西来设置填充和线条颜色,但我无法让它适用于字体颜色。

tell application "Microsoft PowerPoint"
set theShapeRange to shape range of selection of active window
set n to (count shapes of theShapeRange)
repeat with i from 1 to n
    tell shape i of theShapeRange
        set font color of text range of it to {99, 99, 99}
    end tell
end repeat

结束讲述

根据 Mockman 在上面的评论中提供的指导,这似乎可行。

tell application "Microsoft PowerPoint"
    set theShapeRange to shape range of selection of active window
    set n to (count shapes of theShapeRange)
    repeat with i from 1 to n
        tell shape i of theShapeRange
            set font color of font of text range of text frame of it to {99, 99, 99}
        end tell
    end repeat
end tell