Hi There,
Please can some one help me.
I’m putting together a script for Adobe Acrobat and to cut a long story short I’ve a slight problem when I come to saving the file.
The UI script is ok right up to the ‘Save As’ dialog.
If the file already exists, which it does, a popup appears asking the user if they’d like to replace the file with the one you’re saving.
I’m trying to script the UI to click the ‘Replace’ button - this is where the error occurs. I’m not sure how I refer to this particular button in the popup. I’ve used the UI Inspector to try and find out the window name but under AXWindow: I get nothing?
I’m also trying to test if this popup or window exists before I try and click on this button.
Any help would be appreciated.
Thanks in advance,
Nick
Further to my earlier post I’ve now got this:-
if ((first window whose description is "dialog") exists) then
click button "Replace" of (first window whose description is "dialog")
end if
However I get the error:-
System Events got an error:
NSReceiverEvaluationScriptError: 4
The script can tell the window exists because I’ve stuck a dialog box in to check it’s getting that far, it must be the button press that is generating the error.
Any help would be appreciated.
Thanks
Model: G5
Browser: Internet Explorer 6.0
Operating System: Mac OS X (10.4)