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