now getting error code on old script

i had this script i wrote with help from Rob J on apple’s forum site that used to work. i had computer troubles saturday (no booting) and had to reinstall jaguar and the 10.6 combo update and the ui scripting beta.

now, this script, which used to work fine, gets this error when trying to click on the submenu item – click menu item “1 Set Open Properties” :
NSReceiverEvaluationScriptError: 4

can anyone tell me what’s up?



tell application "Acrobat 5.0"
	activate
end tell
tell application "System Events"
	tell process "Acrobat 5.0"
		tell menu bar 1 -- menu bar 
			delay 1
			tell menu "File" -- menu 
				delay 1
				tell menu item "Batch Processing" -- menu item 
					delay 1
					tell menu 1 -- sub-menu 
						delay 3
						click menu item "1 Set Open Properties" -- sub-menu item; works on a sort of watched folder contents
					end tell
				end tell
			end tell
		end tell
	end tell
end tell

After you reinstalled the software, did you go to the Universal Access preference pane and turn on “Enable access for assistive devices”?

In the line in question:

click menu item “1 Set Open Properties”

Is there actually a menu item named: “1 Set Open Properties” ?

there is such a menu item; i renamed it while trying to fix things; i also added those silly delay cuz adding delays usually fixes my script woes.

but i did not turn on “Enable access for assistive devices;” totally forgot about that. duh.

(my big theory was that it wasn’t working was because i have script editor 2 beta, not 1.9; and that didn’t really make sense)

Thank you, thank you, thank you. the script works fine now.