0

我一直在试验 Pages 对象模型,并试图用 AppleScript 来操作它。我可以使用此命令将新页面添加到文档中。制作新页面 我面临的问题是它总是在文档的开头而不是在文档的末尾创建新页面。

字典说整个语法是

set theResult to make new type class ¬
 at location specifier ¬
 with data anything ¬
 with properties record

并且我尝试使用 BOTTOM 和 END 作为位置说明符的值,但它们没有成功。在文档底部创建新页面或新部分时,我缺少什么?

4

1 回答 1

0

用自然语言思考。

你想在make_new page at the end ofsectionsfront document

tell application "Pages"
    tell front document
        set newPage to make new page at the end of sections
    end tell
end tell
于 2018-09-10T12:06:52.270 回答