InDesign CS Scripting Problem

Hello,
I have a few scripts that were written to work with InDesign 2 and Filemaker to build a catalog. These work great in version 2 of InDesign, but my client recently purchased the new CS version. Now my scripts won’t work. Specifically I cannot override the master page items to unlock them when I create a new page based on a master page.

I’m looking for help with the correct syntax or sample code that will do this.

TIA,
Matthew

Ooof. I’ve just run into this exact same issue. Was there any resolution on this?

–andy

Look at the new “override” command. For example, if you want to override the front-most page item of the first master spread on page 1, you could use:

tell application “InDesign CS”
tell document 1
override page item 1 of master spread 1 destination page page 1
end tell
end tell

Shane

Thanks!

Is there a quick way to select which master page item I want to override if I don’t know its index? For example, I have one master page item with a label, but the following doesn’t seem to work:


tell application "InDesign CS"
  tell document 1
    tell page 1
      set myBox to (every page item of master page items whose label is "A")
      return myBox  -- returns {}
    end tell
  end tell
end tell

Nevermind, I got it. It was a question of selecting:

(every item of master page items whose label is "A")

…and not every page item of…