0 Replies Latest reply on Apr 29, 2011 10:00 AM by Rajeev Kumar MIL

    NSReceiverEvaluationScriptError: 4 (1)

    Rajeev Kumar MIL Level 1

      We are trying to use the below code but it gives error "NSReceiverEvaluationScriptError: 4 (1)"

       

           tell application "Adobe Acrobat Pro"

       

                  activate

       

                  open PdfFile

       

              end tell

       

              tell application "System Events"

       

                  tell application process "Acrobat"

       

                      click the menu item "PostScript" of menu 1 of menu item "PostScript" of menu 1 of menu item "Export" of the menu "File" of menu bar 1

       

                      keystroke "/"

       

                      keystroke keyString & onlyFileName

       

                      keystroke "

       

              "

       

                      keystroke "

       

              "

       

                  end tell

       

              end tell

       

      It give a problem on click the menu item. This code is working fine on my own laptop but it doesn't work on user system. All the configuration of OS and application version are identical.

       

      Regards,

      Rajeev