0

My applescript is written as follows:

tell application "System Events"

    get every static text of UI element 1 of row 1 of table 1 of scroll area 1 of sheet 1 of window "Settings" of application process "NordVPN IKE"
end tell

it yields

{static text "United States #2632" of UI element "United States #2632" of row 1 of table 1 of scroll area 1 of sheet 1 of window "Settings" of application process "NordVPN IKE" of application "System Events"}

so far so good.

With a little copy-paste magic, my applescript now reads:

tell application "System Events"
    click static text "United States #2632" of UI element "United States #2632" of row 1 of table 1 of scroll area 1 of sheet 1 of window "Settings" of application process "NordVPN IKE"
end tell

The Result is missing value. It doesn't say invalid index or anything like that but it doesn't click on the text. How do I get it to click on the text?

  • 2
    It likely has clicked on the text but static text objects usually don't have a "click" (or "AXPress") action associated with them. Perhaps try clicking on row 1 instead or ui element 1. – CJK Nov 7 '18 at 7:27

You must log in to answer this question.

Browse other questions tagged .