Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

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

$
0
0

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:

 

tellapplication "Finder"

  tellapplication "System Events"

    tellprocess "AdobeAcrobat"

     tellmenu bar 1

      tellmenu bar item "File"

       tellmenu "File"

        tellmenu item "Save As"

        tellmenu "Save As"

           clickmenu item "Reduced Size PDF..."

          endtell

        endtell

       endtell

      endtell

    endtell

   endtell

                                        endtell

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

                 

  tellapplication "System Events"

  keystroke ("ALLMAG"asstring)

  keystrokereturn

                              endtell

 

end tell


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>