Can someone please help me write a script for the following command: apply "name of paragraph style", clear character style. so i can make for this script a shortcut.
So when you run the script it shows you a menu of all the paragraph styles to choose from?
no, it should just execute the command in blue, on my text selected.
My selected text already has a paragraph style, but also has a character style which conflicts with the paragraph style and I want to clear it, the only way is to open each time the paragraph style menu, right click on the style and press on the command. and I want a script to do that and then i'll add a key shortcut to that script.
Okay, got it. I think the following script may do what you want, but it also clears all character level overrides in the selected text or text frames. See if it does what you need.
Thank You! I tried it out and indesign opened an error window, atached below.
Sorry, i didn't copy it correctly, it actually works! amazing!
Great to hear! Yes it must be a plain text file, not rich text.