Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Clarify ClearOverrides

Enthusiast ,
Jun 25, 2013 Jun 25, 2013

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

TOPICS
Scripting
954
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jun 28, 2013 Jun 28, 2013

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

Translate
Guide ,
Jun 26, 2013 Jun 26, 2013

I think tracking is a character override.

P.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 26, 2013 Jun 26, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 27, 2013 Jun 27, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 28, 2013 Jun 28, 2013
LATEST

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

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