13 Replies Latest reply on Jun 29, 2011 12:05 PM by MJP29

    Having problem with script for overprint preview and show guides

    MJP29

      tell application "Adobe InDesign CS5"
          tell document 1
              set show frame edges of view preferences to false
              set show rulers of view preferences to false
              set overprint preview of view preferences to false
              set guides shown of view preferences to false
          end tell
      end tell

       

      the first 2 work fine, the last 2 error:

       

      error "Adobe InDesign CS5 got an error: Can’t set overprint preview of view preferences of document 1 to false." number -10006 from overprint preview of view preferences of document 1 :

       

      error "Adobe InDesign CS5 got an error: Can’t set guides shown of view preferences of document 1 to false." number -10006 from guides shown of view preferences of document 1

       

      I figured the last 2 were in the view preferences like the first 2.

       

      Thanks for any help

       

      MJP29