वास्तव में यकीन नहीं है कि यहाँ इसकी उम्मीद क्या है, मैं इसके आसपास click buttonहालांकि मान लेता हूं । यह 10.10.3 पर काम करता था, लेकिन लगता है कि 10.10.4 पर बंद हो गया है?
लिपि
function AcceptSecurity ()
{
osascript <<EOF
tell application "System Events"
repeat while exists (processes where name is "SecurityAgent")
tell process "SecurityAgent"
click button "Allow" group 1 of window 1
end tell
delay 0.2
end repeat
end tell
EOF
}
सटीक त्रुटि 165:170: syntax error: Expected end of line but found class name. (-2741)