CS6 master page problems with CS5.5 script


hi.

 

i've extensive script created cs5.5, creates 16 documents, styles them, , adds them book file.

 

under cs6, still works fine, creates necessary stylesheets , master pages, master page items shifted.

 

i've checked position page tool, , clicked show master page overlay, , centre of master pages sitting @ centre of spread (which 0 point of ruler).

 

i've tried versioning cs5.5, can't stick (compiling changes cs6 cs5").

 

can tell me how correct problem? ideally, i'd append part of script creates master page. starts thus:

 

set currentmaster to master spread "a-master" of pub00

          set base name of currentmaster to "standard pages"

 

          tell currentmaster

  make guide with properties {orientation:vertical, location:"138mm"}

  make guide with properties {orientation:vertical, location:"140mm"}

 

                    tell margin preferences of pages

                              set top to topmargin

                              set left to insidemargin

                              set bottom to bottommargin

                              set right to outsidemargin

                              set column count to doccolumns

                              set column gutter to colgutter

                    end tell

 

... , start creating para , character styles, , add various frames content masters.

 

another section create master starts ...

 

tell currentmaster

                              tell page 1

 

... should use 'tell page 1' block alter master overlay, or somewhere else?

 

each document has 3 different master pages, have open 16, , use page tool shift master overaly, can pretty time consuming.

 

any pointers appreciated.

i'm seeing well, when go override master page items normal page.  code worked fine on cs5, broke when updated cs6.

 

on override_master_page_items(p)
  -- overrides possible master page items given page.
  tell application "adobe indesign cs6"

    try
      -- list of items override
      set master page items of p
      set b {}
      repeat v in i
        -- build list of items override can process at   once (for speed)
        try
          if allow overrides of v true then
            -- override item if in fact possible so.
            set b {b, v}
          end if
        end try
      end repeat

      -- override items found above.
      set overriddenitems override b destination page p
    end try
  end tell
end override_master_page_items

 

any or ideas appreciated.



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support