Highlighted

Findchangebylist script doesn't recognise paragraph style

Community Beginner ,
Sep 25, 2020

Copy link to clipboard

Copied

To just list an example here, when I try to run this query, the find/change targets every paragraph style in the document, in spite of me trying to target one particular style.

 

text {findWhat:"2 boks", appliedParagraphStyle:"ukens_ravarer_tabbed_list"} {changeTo:"2 bokser"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:false, wholeWord:true, caseSensitive:false, kanaSensitive:true, widthSensitive:true, ignoreKashidas:true, ignoreDiacritics:false, searchBackwards:false}
 
Does anyone see whats wrong? 
Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

For making changes in all the open documents, try this edited version of the script.

-Manan

TOPICS
Scripting

Views

93

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Findchangebylist script doesn't recognise paragraph style

Community Beginner ,
Sep 25, 2020

Copy link to clipboard

Copied

To just list an example here, when I try to run this query, the find/change targets every paragraph style in the document, in spite of me trying to target one particular style.

 

text {findWhat:"2 boks", appliedParagraphStyle:"ukens_ravarer_tabbed_list"} {changeTo:"2 bokser"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:false, wholeWord:true, caseSensitive:false, kanaSensitive:true, widthSensitive:true, ignoreKashidas:true, ignoreDiacritics:false, searchBackwards:false}
 
Does anyone see whats wrong? 
Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

For making changes in all the open documents, try this edited version of the script.

-Manan

TOPICS
Scripting

Views

94

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 25, 2020 0
Adobe Community Professional ,
Sep 25, 2020

Copy link to clipboard

Copied

Seems to be working fine for me, see this screengrab

-Manan

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 25, 2020 1
Community Beginner ,
Sep 25, 2020

Copy link to clipboard

Copied

Thank you for trying to help, but it just doesnt work for me. So I guess since its not replicable, its almost impossible to find the cause.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 25, 2020 0
Adobe Community Professional ,
Sep 25, 2020

Copy link to clipboard

Copied

Send across the findchangelist.txt and the indd file. I can test using them and see if I can reproduce the issue

-Manan

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 25, 2020 1
Community Beginner ,
Sep 25, 2020

Copy link to clipboard

Copied

I figured it out. The solution doesnt make sense to me, but it works. 

 

So what I did was moving the paragraph style in question out of a group. When its not in a group, the script only targets the style its supposed to. Guess you just cant use groups with this script. 

 

While I got you, do you know if there is there some simple line of code I can modify, so that the script targets all open documents (similiar to "all documents" in find/change) instead of just the one I am already in?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 25, 2020 0
Adobe Community Professional ,
Sep 25, 2020

Copy link to clipboard

Copied

For using the styles inside groups see the following discussion, where I have provided a solution for this case.

https://community.adobe.com/t5/indesign/findchangebylist-local-formatting-to-a-character-style/m-p/1...

-Manan

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 25, 2020 0
Adobe Community Professional ,
Sep 25, 2020

Copy link to clipboard

Copied

For making changes in all the open documents, try this edited version of the script.

-Manan

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 25, 2020 0