使用Applescript在PowerPoint中对齐/分发对象
我正在尝试编写一个Applescript来分发/对齐PowerPoint幻灯片上的对象。到目前为止,我设法解决选定的对象。但是我想不出一种方法来分配/调整它们 以下是我目前掌握的情况:使用Applescript在PowerPoint中对齐/分发对象,applescript,powerpoint,Applescript,Powerpoint,我正在尝试编写一个Applescript来分发/对齐PowerPoint幻灯片上的对象。到目前为止,我设法解决选定的对象。但是我想不出一种方法来分配/调整它们 以下是我目前掌握的情况: tell application "Microsoft PowerPoint" set theShapeRange to shape range of selection of active window distribute shapes with properties {distribute type:dis
tell application "Microsoft PowerPoint"
set theShapeRange to shape range of selection of active window
distribute shapes with properties
{distribute type:distribute horizontally}
end tell
谢谢 在Outlook 2016中,您可以执行以下操作:
tell application "Microsoft PowerPoint"
set theShapeRange to shape range of selection of active window
distribute theShapeRange distribute type distribute vertically without relative to slide
end tell
对齐具有类似的语法(对齐形状对齐类型align lefts
)
distribute
的字典条目表示without-relative-to-slide
参数是可选的,但是如果我忽略该参数,脚本将抛出一个错误。字典实际上将参数列为相对于幻灯片的,但脚本编辑器将其替换为其他格式。align
命令没有这个问题(即,我可以省略可选的最后一个参数)。在Outlook 2016中,您可以执行以下操作:
tell application "Microsoft PowerPoint"
set theShapeRange to shape range of selection of active window
distribute theShapeRange distribute type distribute vertically without relative to slide
end tell
对齐具有类似的语法(对齐形状对齐类型align lefts
)
distribute
的字典条目表示without-relative-to-slide
参数是可选的,但是如果我忽略该参数,脚本将抛出一个错误。字典实际上将参数列为相对于幻灯片的,但脚本编辑器将其替换为其他格式。align
命令没有这个问题(即,我可以省略可选的最后一个参数)