Applescript ideas on java prompts

Looking for applescript ideas on how to toggle the “Do not ask again until the next update available.” and then select the “Later” button.

tab / space / do not seem to function. This pop up shows in Safari when using java 6 / 7ish… The popup window moves outside of safari which makes me think its another process.

I have tried many version of this:

osascript -e 'tell application "System Events" to tell process "Safari"
    click button 1 of sheet 1 of window 1
end tell'

If I try process java, says process not found…

Hello.

Hopefully you can press ctrl-f7 to enable accessibility keys (for the current dialog) this should hopefully work for your dialog so that the tab and space keys work.

Other than that, have you tried to look at the dialog with UIElementInspector? That is the other option, it is among the dev tools, so maybe you’ll need to download Xcode in order to get it, if it isn’t on a separate download from devcenter.apple.com.

hth

This was helpful, and it works but… I cant toggle the radio button. The tab only cycles through the three buttons near the bottom.

Also, in activity monitor it appears to be listed as:
JavaAppletPlugin (Safari Internet Plugin)

screenshots:

inspector over the title of the window
http://www.tiikoni.com/tis/view/?id=b22dd49

the problem…
http://www.tiikoni.com/tis/view/?id=65a06e4

inspector over the “remember” radio button
http://www.tiikoni.com/tis/view/?id=e645494

I was able to finally figure this out, perhaps this may be helpful for someone else:

osascript -e 'tell application "System Events" to tell application process "JavaAppletPlugin (Safari Internet plug-in)"
	click checkbox "Do not ask again until the next update is available" of window 1
	delay 2
	click button "Later" of window 1
end tell'