質問

I am able to do the right click mouse event by using below script:

tell application "System Events" tell process "Finder" set target_index to 1 set target to image target_index of group 1 of scroll area 1 tell target to perform action "AXShowMenu" end tell end tell

BUT now I want to click on the menu item... let say "Get Info" then how I meet this goal? any clue?

役に立ちましたか?

解決

tell application "System Events"
    tell process "Finder"
        set target_index to 1
        set target to image target_index of group 1 of scroll area 1
        tell target to perform action "AXShowMenu"
    end tell
    keystroke "Get Info" & return
end tell
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top