0 Replies Latest reply on Nov 16, 2010 10:56 PM by Mahesh_JW

    Enable for Commenting and Analysis in Adobe Reader...

    Mahesh_JW Level 1

      Hi All,

      I used this code for "Enable for Commenting and Analysis in Adobe Reader...". It works well, but it asks the location to save as the pdf. My problem is, it is running in watchfolder so it should not ask anything, so how can I save it through this code.

       

      Please help!!!

       

      Thanks in Advance.

       

       


      on adding folder items to this_folder after receiving added_items
          repeat with current_item in added_items
              if file type of (info for current_item) is "PDF " then
                  try
                      tell application "Adobe Acrobat Professional"
                          activate
                          open current_item
                      end tell
                      tell application "System Events"
                          try
                              tell process "Acrobat"
                                  pick menu item "Enable for Commenting and Analysis in Adobe Reader..." of menu "Comments" of menu bar item "Comments" of menu bar 1
                                  repeat while (exists window "Save As")
                                      delay 1
                                  end repeat
                              end tell
                          on error
                              display dialog "System Events was unable to Enable Commenting. This may be because Acrobat has modified its menu system. Please contact your system administrator." with icon 0
                          end try
                      end tell

                      tell application "Adobe Acrobat Professional"
                          close last document
                      end tell
                      tell application "Finder"
                          move current_item to trash
                      end tell
                  end try
              end if
          end repeat
      end adding folder items to