1

私は教師で、Keynote スライドをスペルのフラッシュカードとして使用したいと考えています。スクリプトを作成できず、コピーして Applescript Editor に貼り付け、そこから実行できるものを探しています。別のスレッドで次のスクリプトに出くわしましたが、必要なものに近いものです。

tell application "Keynote"
    tell slideshow 1
        show slide 3
        show slide 2
        show slide 1
        show slide 4
    end tell
end tell

しかし、私の目的には 2 つの問題があります。2. 各カードが表示される時間の長さを制御することはできません。

アドバイスをいただければ幸いです。

4

1 に答える 1

1

これは、インデックスを混合し、各スライド間で待機するスクリプトです

set tdelay to 5 -- seconds  -- the length of  time each card is shown.

tell application "Keynote"
    activate
    tell slideshow 1 to repeat with i in my mixIndexes(count slides)
        show slide i
        delay tdelay
    end repeat
end tell

on mixIndexes(n)
    set l to {1}
    if n is 1 then return l
    repeat with i from 2 to n
        set end of l to i
        set j to some item of l
        tell item i of l to set {item i of l, item j of l} to {item j of l, it}
    end repeat
    return l
end mixIndexes
于 2012-05-04T18:05:26.170 に答える