页面的苹果脚本并在其中实现
如何将applescript写入pages'09.我正在寻找一个脚本来实现正文的行间距。我编写的程序。
tell application "Macintosh HD:Applications:iWork '09:Pages.app"
tell Untitled
get properties of paragraph styles
tell bodytext
set properties to justify
set line spacing to Double
end tell
end tell
end tell
How to bring applescript written into pages'09. I am looking for a script to implement line spacing for the body text.The program I have written.
tell application "Macintosh HD:Applications:iWork '09:Pages.app"
tell Untitled
get properties of paragraph styles
tell bodytext
set properties to justify
set line spacing to Double
end tell
end tell
end tell
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就是这样:
行距
的值以百分比为单位,因此200
将导致双倍行距。编辑:但是,这会设置文档中各处的行距,而不仅仅是正文段落。如果您只需要它们,请考虑循环它们并一一更改它们的段落样式:
Here you go:
The value of
line spacing
is in percent, thus200
will result in double line spacing.EDIT: this, however, would set the line spacing everywhere in the document, not just the body text paragraphs. If you want only them, consider looping through them and changing their paragraph styles one by one: