Hi forum, i got tis aftre surfing...
The problem is : comments enabling happens only for the first 2 pdf inside the folder.
Then from the third one,,, the dialog box just asks to save... manually and the script just stops.
tell application "Finder"
set my_folder to select folder "Macintosh HD:Users:jross:Desktop:Crop:Enable" as text
set thePDFs to select (every item of my_folder)
end tell
repeat with aPDF in thePDFs
tell application "Adobe Acrobat Pro"
open aPDF
end tell
activate application "Adobe Acrobat Pro"
tell application "System Events"
tell process "Acrobat"
delay 10
click menu item "Enable for Commenting and Analysis in Adobe Reader..." of menu 1 of menu bar item "Comments" of menu bar 1
click button "Save" of window "Save As"
if exists sheet 1 of window "Save As" then
click button "Replace" of sheet 1 of window "Save As"
end if
end tell
end tell
tell application "Adobe Acrobat Pro"
close every document
end tell
end repeat
please help to convert all the pdf inside the folder as "commenting enabled preferences".
many thanks..