Copy link to clipboard
Copied
I use conditional tags to apply automatic updates to headers and footers using variables. The conditional tag is applied to a paragraph based on what the paragraph tag is. The condition displayed is dependent upon where it is located in the hierarchy. For instance, let's say the RED conditional tag is higher than the BLUE conditional tag, which is higher than GREEN conditional tag. I apply the RED conditional tag to the paragraph that has the Red paragraph tag applied.
Could I use a script to search for the paragraph tags (e.g., Red, Blue, Green) and apply the corresponding conditional tag? I would also want to ensure that no other conditional tags are applied to any of the text in each paragraph. Any and all help is appreciated. Thank you in advance!
Example:
RED |
(Red) This paragraph uses the Red paragraph tag and has the RED condition applied. (Blue) This paragraph uses the Blue paragraph tag and has the BLUE condition applied. (Green) This paragraph uses the Green paragraph tag and has the GREEN condition applied. |
RED |
Copy link to clipboard
Copied
I have created scripts to automatically apply condition tags and I found this is not a trivial task. I do have all the required knowledge and experience to do the trick, but I am not going to give you all of that knowledge and scripting for free. If you are interested you can mail me via jang at jang dot nl.
Copy link to clipboard
Copied
Thanks for your reply. Unfortunately, I work for a government contractor and nothing is ever in the budget for things like this. Does anyone else have any ideas?
Copy link to clipboard
Copied
What is your level of scripting knowledge? There are some posts on conditional text and ExtendScript on my blog
--Rick