Press a button using Applescript
I've written a very simple script to open an FTP application. In order to complete the action and fully open the application there is a popup window with two buttons; button 1 is dimmed button 2 says connect which is what I want to do. I get no error in my script, but the button is never clicked. It is lightly blinking. If I press the connect button manually, the application completes the action.
Here is my script:
tell application "Yummy FTP"
delay 2
activate
tell application "System Events"
tell process "Yummy FTP"
clickbutton 2 of window 1
end tell
end tell
end tell
What have I missed?
Thanks,
Kathy
Mac Pro, iOS 9