Skip navigation
dcrane37
Currently Being Moderated

CS3 Ital script help needed

Aug 24, 2010 8:13 AM

I'm not familiar with the InCopy Script language and I'm looking for help in how to accomplish the

following script.

 

Here's what I would be searching for.

 

(BEG ITAL) any amount of text here...(END ITAL)

 

I need the script to remove the (BEG ITAL) and (END ITAL) then change the text between them to italic.

 

I can do this easily with Word but inCopy scripting stumps me. Any help

would be appreciated.

 

Dave

 
Replies
  • Currently Being Moderated
    Sep 17, 2010 11:52 AM   in reply to dcrane37

    I'm not sure if you're still looking for help with this, but this can be done with one GREP find/change command. Copy and paste the text between the quotes into the GREP find/change dialog and set up everything else as indicated. I put a space before the expression so you don't end up with double spaces after you find/change, but you may want to watch the first few to make sure it's functioning as you desire.

     

    Find What: " \(BEG ITAL\)(.+?)\(END ITAL\)"

    Change To: leave blank

    Find Format: leave blank

    Change Format: Character style = ITALIC

     

    Let me know if this works for you,

    Matthew

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 24, 2010 9:09 AM   in reply to dcrane37

    Oh, my mistake, Dave. The Change To box should say "$1" (no quotes).

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points