使用applescript锁定整个主讲台上的每个对象?

时间:2019-05-13 19:47:56

标签: applescript keynote

我正在尝试使用applescript来锁定主题面板中每张幻灯片上的每个对象,但只能部分成功。我在下面提供了我正在使用的代码。到目前为止,它仍然有效,但是似乎跳过了所有分组的对象。我有什么办法可以告诉脚本也包含分组对象?

tell application "Keynote"
    tell document 1
        tell every text item of every slide
            set locked to true
        end tell
        tell every shape of every slide
            set locked to true
        end tell
        tell every image of every slide
            set locked to true
        end tell
        tell every movie of every slide
            set locked to true
        end tell
        tell every line of every slide
            set locked to true
        end tell
        tell every item of every slide
            set locked to true
        end tell
    end tell
end tell

0 个答案:

没有答案