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'
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.
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'