Script to apply Paragraph style to a specific tag with attributes
- This topic has 1 reply, 2 voices, and was last updated 6 years, 7 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Script to apply Paragraph style to a specific tag with attributes
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Script to apply Paragraph style to a specific tag with attributes
Hi ID Masters, please help me with these. Need a script to search for a level 4 head with attribute and apply Paragraph style on it. XML tag are look liked this … <head number=”1.2.3.4.5″>. 4HD should be apply to this. Is it possible to search for a value using the wildcard option (i.e., //story/head[@number=’\d.\d.\d.\d.\d’]). If not, please, I need your suggestion with this. Thanks in advance guys.
Hi Michael,
Can you please explain a little more so that a GREP code can be written.
Secondly, you can easily apply tags using the Find/Change. In the Change Format Settings, click the XML option at the bottom left and then choose the XML Tag to apply to.
But before the F/C, you need to import the XML Tags in to your document.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!