使用 Apple Script 设置 PowerPoint 字体颜色
我正在尝试使用 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
结束告诉
I'm trying to use Apple script to set the font color of all selected PowerPoint shapes. I used something similar to this to set fill and line color, but I haven't been able to get it to work for font color.
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
end tell
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据莫克曼在上面的评论中提供的指导,这似乎是有效的。
Based on the guidance provided by Mockman in a comment above, this seems to work.