0 Replies Latest reply on Jun 16, 2014 12:05 PM by TDflg14

    trying to override masterpage items

    TDflg14

      using CC.

      Here's my scripts

      tell application "Adobe InDesign CC"

          tell every item of page 1 of document 1

              set allow overrides to true

          end tell

      end tell

       

      I get error -10006

      Can't set allow overrides of every item of page 1 of document 1 to true

       

      Tried

      tell application "Adobe InDesign CC"

          override every item of page 1 of document 1

      end tell

      got error -1708

      every item of page 1 of document 1 doesn't understand the override message

       

       

       

      Tried

      tell application "Adobe InDesign CC"

          set mypageitems to all page items

          override mypageitems

      end tell

       

      Gives me error -1728

      Can't get all page items

       

      tell application "Adobe InDesign CC"

          tell masterspread of document 1

              set mypageitems to master page items

              override mypageitems

          end tell

      end tell

      got error -1728

      Can't get master page items of masterspread of document 1

       

      I found this script for provided by Shane Stanley from CS5 and it worked (I changed it to CC) but gives an error after completing

      error -1708

      every item of master page items of page 9 of document 1 whose allow overrides of it = true doesn't understand the override message

      -- I switched to a 9 page document to test with.

       

      tell application "Adobe InDesign CC"

          tell document 1

              repeat with i from 1 to count of pages

                  override (every item of master page items of page i whose allow overrides is true) destination page page i

              end repeat

          end tell

      end tell