문제

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