0 Replies Latest reply on Nov 24, 2010 10:22 PM by Mahesh_JW

    Key code problem

    Mahesh_JW Level 1

      Hi all,

       

      This code well work, save as the pdf file in same path, and replace the existing file. I want to save the pdf in another location. How can it is possible

       

      tell application "System Events"

           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 2
                     key code 36
                     delay 2
                     keystroke tab
                     keystroke "Replace"
                     keystroke space
                     delay 1
                     key code 36
                     key code 36
                     delay 1
                end repeat
           end tell

      end tell

       

       

      Thanks in Advance

      Mahesh