0

アップルスクリプトでアイテムを5つ星と評価するようにプログラムCaptureOneを取得しようとしています。アイテムが別のメニューにつながらない限り、プログラムにメニューアイテムにアクセスさせることができますが、残念ながら、評価の下で評価を選択するオプションがあります。スクリプトでアイテムを評価する方法がわかりません。どんな助けでも素晴らしいでしょう。

これが私がこれまでに持っているコードです:

    tell application "Capture One" to activate
    tell application "System Events"


        try
            click menu item ¬
                "5" in menu "Rating" in menu "Adjustments" of menu bar item ¬
                "Adjustments" in menu bar 1 of process "Capture One"

        end try

    end tell

これは、レート5を選択しようとしているメニューバーの画像です。

メニューバー

4

2 に答える 2

1

数字のキーストロークで評価を付けてもらえますか?

tell application "System Events" to keystroke "5"
于 2013-01-30T22:25:32.400 に答える
0

メニューは「5」ではないと思います。これが、クリックして5つ星を選択できるキーストロークです。それで、メニュー項目はおそらく5つのアスタリスクですか?「*****」

クリックサブメニューのコーディング方法は次のとおりです。

tell application "System Events"
tell process "Capture One 10"
    set frontmost to true
    click menu item "Capture" of menu 1 of menu item "Select Tool Tab" of menu 1 of menu bar item "View" of menu bar 1

end tell
end tell 
于 2017-01-11T18:15:59.503 に答える