Copy link to clipboard
Copied
Hi All,
I need clarify in overrides
app.selection[0].clearOverrides(OverrideType.ALL); //working fine
But,
app.selection[0].clearOverrides(OverrideType.PARAGRAPH_ONLY); //not working
simply select the single paragraph with some tracking, but it not working fine.
Could you explain how can we use "app.selection[0].clearOverrides(OverrideType.PARAGRAPH_ONLY)"
Thanks in advance
Beginner_x
You should probably be somwhat more explicit as to exactly what it is that does not work.
This works for me (works with a a whole text frame selected, or a text selection):
app.selection[0].texts[0].clearOverrides(OverrideType.CHARACTER_ONLY);
The character style trackning is removed, and only from the selection.
Best regards,
Andreas
Copy link to clipboard
Copied
I think tracking is a character override.
P.
Copy link to clipboard
Copied
Hi Pickory,
Thanks for your response....
I tried both Paragraph and character overrides. Still it is not working.
Could any legends please help me to solve this problem....
Thanks
Beginner
Copy link to clipboard
Copied
hi, using apple script .........
tell application "Adobe InDesign CS5.5"
repeat with j from 1 to count of stories of active document
select text of story j of active document
clear overrides selection
end repeat
end tell
Copy link to clipboard
Copied
You should probably be somwhat more explicit as to exactly what it is that does not work.
This works for me (works with a a whole text frame selected, or a text selection):
app.selection[0].texts[0].clearOverrides(OverrideType.CHARACTER_ONLY);
The character style trackning is removed, and only from the selection.
Best regards,
Andreas
Find more inspiration, events, and resources on the new Adobe Community
Explore Now