Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • frankeman90
    Member

    Finally got it to work with the script below. But do you know how I can make this only affect the selected text / text frame?

    app.findGrepPreferences=app.changeGrepPreferences=null;

    app.findGrepPreferences.findWhat=”?(.+)$”;

    app.changeGrepPreferences.changeTo=”$1″;

    app.changeGrepPreferences.appliedParagraphStyle=”APPLE”;

    app.activeDocument.changeGrep();

    app.findGrepPreferences.findWhat=”?(.+)$”;

    app.changeGrepPreferences.changeTo=”$1″;

    app.changeGrepPreferences.appliedParagraphStyle=”BANANA”;

    app.activeDocument.changeGrep();

    frankeman90
    Member

    Yes, I have been looking in to the findchangebylist but cannot understand how to make it change paragraph style based on an grep-search.

    Any chance you could help me out?

    (And thanks for the DTP Tools, use them every day ;-)

Viewing 2 posts - 1 through 2 (of 2 total)