Back

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

  • You must be logged in to reply to this topic.Login

Find/Change to subfolders

Return to Member Forum

  • Author
    Posts
    • #61287
      Anonymous
      Inactive

      I've been trying to use the find change script to format all text in a block to a paragraph style in a folder, but the script keeps changing it to the paragraph style of the same name that isn't in a subfolder.

      so my paragraph styles panel looks like this:

      Folder:Catalog Styles

      body copy

      color/size

      price line

      body copy

      (etc)

      and here is the grep query I've been trying to apply, the bolded part is what doesn't seem to be working, is there a different way of expressing folders in the paragraph styles panel?

      grep {findWhat:”^.”} {changeTo:”$0″, appliedParagraphStyle:”body copy (Catalog Styles)“, changeConditionsMode:1919250519} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true} //Comment

    • #61288
      Anonymous
      Inactive

      found a solution at the adobe forums, just thought i'd share it so this thread has an answer too

      changed this: appliedParagraphStyle:”body copy (Catalog Styles)

      to this: appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item(“Catalog Styles”). paragraphStyles.item(“body copy”)

      worked like a charm

    • #62793

      You are the master of the find/change script! I saw your post about pointing to a network, too. Any other tricks? Have you written these all down somewhere? (and where/how did you figure out the Conditional Text one)?

      AM

    • #62920
      Anonymous
      Inactive

      I've been pretty bad about writing anything down about it, but off the top of my head, using kasyan's script that I've linked to below to build the queries more easily

      By conditional text do you mean this part?

      changeConditionsMode:1919250519

      that is actually just automatically added to the query line in a script I use to build my find/change lists.

      That script was written by Kasyan and is actually on your site https://creativepro.com/find-change-scripting-goodness.php

      Also from Kasyan over on the adobe forums:

      changeConditionsMode – The change conditions mode, change either replaces applied conditions or adds to applied conditions.

      Can be:

      ChangeConditionsModes.ADD_TO Change adds to applied conditions. ChangeConditionsModes.REPLACE_WITH Change replaces applied conditions. (The same as changeConditionsMode:1919250519)

      or

      ChangeConditionsModes.NothingEnum.NOTHING

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
Forum Ads