Applescript in Adobe Acrobat Pro

I am trying to add a watermark to a pdf, I’ve made a preset “PropertyOfMRD” that I want to use… .

I am doing something wrong… Who can help me?

tell application "Finder"
	tell application "System Events"
		tell process "AdobeAcrobat"
			-- pas view aan
			tell menu item 1 of menu "Watermark" of menu item "Watermark" of menu "Document" of menu bar 1
				click
				tell pop up button 1 of window "Add Watermark"
					click
					tell menu 1
						menu item "PropertyOfMRD"
						click button "OK" of window "Add Watermark"
						tell menu bar 1
							tell menu bar item "File"
								tell menu "File"
									click menu item "Save"
								end tell
							end tell
						end tell
						tell menu bar 1
							tell menu bar item "File"
								tell menu "File"
									click menu item "Close"
								end tell
							end tell
						end tell
						
					end tell
				end tell
			end tell
		end tell
	end tell -- acrobat
end tell -- system event



Hi there,
What about achieving what you want using Acrobat Javascript?

You could use the ‘addWatermarkFromFile’ or ‘addWatermarkFromText’ document methods.
Have a look at the Acrobat JavaScript Scripting Reference there are some examples in there.
Put your code in a text file and trigger it like this:-

set z to "pathToFile:myscript.txt" as alias
tell application "Adobe Acrobat 7.0 Professional"
       try
           do script file z
       on error e
           beep
           return e
       end try
end tell

HTH