1 Reply Latest reply on Apr 23, 2014 12:35 PM by gkaiseril

    How to run "reduce file size" in Acrobat X using applescript

    brifilone

      I currently am using a script to reduce a pdf of 23 page magazine so it can be emailed. The only way I could get it to work was to have the script actually choose the menu and then type in the name I want it to be saved as but it means I cant do anything else till that happens, I would like it to happen in the background so I can keep working.

       

      Current method:

       

      tell application "Finder"

        tell application "System Events"

          tell process "AdobeAcrobat"

           tell menu bar 1

            tell menu bar item "File"

             tell menu "File"

              tell menu item "Save As"

              tell menu "Save As"

                 click menu item "Reduced Size PDF..."

                end tell

              end tell

             end tell

            end tell

          end tell

         end tell

                                              end tell

      delay 1 --wait one second, so the dialog can come up

                       

        tell application "System Events"

        keystroke ("ALLMAG" as string)

        keystroke return

                                    end tell

       

      end tell