我正在尝试在 iWorks Pages 上做一些 AppleScript-fu,并希望在 WP 文档的插入点插入一个文本框。根据 Pages 的字典,有一个称为插入点的对象,它有一个称为插入点的元素。但是我似乎什么也得不到:
tell application "Pages"
tell front document
-->set properties for text box
set needs2Col to false
set colHeight to 0
if ((count of every item of headerFiles) > 5) then
set needs2Col to true
set boxH to (round ((count of every item of headerFiles) / 2) rounding up) * (font size of bookMarkStyle)
set boxW to 6.5 * 72
set boxX to 72.0
-->all these crash and burn with can't get errors
return insertion point of insertion point
return bounds of last paragraph of body text
-->all these return missing value
return insertion point of last paragraph of body text
return insertion point of body text
end if
end tell
end tell
有谁可以帮我离开这里吗。我只是在寻找插入点的 x/y。