Skip to main content
Participant
July 13, 2010
Question

AS find/replace on specific layer?

  • July 13, 2010
  • 1 reply
  • 953 views

Hi is there a way to make a find/replace on a specific layer instead on all document?

thanks to all

This topic has been closed for replies.

1 reply

Inspiring
July 13, 2010

You can do it by targeting the command at the text frames on a particular layer. It's not foolproof if stories are threaded between layers, but fine in most cases you're likely to want to do it in.

Participant
July 13, 2010

tryed this but it doesn't work:

tell application "Adobe InDesign CS4"

tell page1 of active document

-- setto le preferenze di ricerca

set find text preferences to nothing

set change text preferences to nothing

-- setto le preferenze di sostituzione

set find what of find text preferences to "ciccio"

set change to of change text preferences to "sup"

-- eseguo ricerca

tell active document

set trovati to change text to layer1 of active document

end tell

end tell

end tell


Inspiring
July 13, 2010

You probably need something like this:

change text (every item of all page items whose class is text frame and item layer is layer 1)