You must be logged in to post Login

Search Forums:


 






Find/Change to subfolders

UserPost

9:37 am
December 20, 2011


jessereko

Member

posts 21

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

12:30 pm
December 20, 2011


jessereko

Member

posts 21

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