How can I alert UIColors.red

Hi Forum,

How can I get alerts if the texts of the document misspelled UIColors.red as pointed out... After setting the spellPreferences...

{with (App.spellPreferences)}

checkMisspelledWords = true;                    Find misspelled words

checkRepeatedWords = true;                        Find repeated words

checkCapitalizedWords = true;                    Search, modal words

checkCapitalizedSentences = true;                Find, modal phrases

dynamicSpellCheck = true;                        Enable dynamic spelling

misspelledWordColor = UIColors.red;                Color, misspelled words

repeatedWordColor = UIColors.green;                Color, repeated words

uncapitalizedWordColor = UIColors.green;    Color, modal words

uncapitalizedSentenceColor = UIColors.green;    Color, modal phrases

}

Thanks in advance.

rajnikids.

rajnikids wrote:

If (ConditionUnderlineIndicatorAppearance.WAVY == UIColors.red) {}

Alert ("document badly spelled words")

}

You cannot compare a value of aspect listed with an enumerated value of UIColors. The real 'value' of the constant ConditionUnderlineIndicatorAppearance.WAVY is 1937208953, the UIColors. RED is 1767007588 (values taken directly from http://jongware.mit.edu/idcs6js/pe_ConditionUnderlineIndicatorAppearance.html and http://jongware.mit.edu/idcs6js/pe_UIColors.html). In any normal circumstances should these values be identical.

In addition, you test "If apples are sad then heaven is rich" to check the misspelled words:

1. the conditions themselves have nothing to do with misspelled words.

2. the way in which the terms are displayed on the screen - wavy, dashes or solid - have nothing to do with misspelled words.

3. the color of the interface 'Red' has nothing to do with misspelled words.

You seem to be assuming that there is a relationship. The fact that conditions and misspelled words can be shown on the display by a red, wavy doesn't mean anything at all.

The only way I can think of "spell check via the script" is to use a check before the direct flight and to analyze the results of this.

Tags: InDesign

Similar Questions

Maybe you are looking for

  • Not available account details

    on my iPod touch and my SE 5 iPhone go to settings then iCloud, then I touch my Apple ID and then it comes up with this and I need help as soon as POSSIBLE

  • What will happen if I plug the iphone 5 in super usb support?

    IPhone is not overfeed compatable, and I wonder if it would be case of damage to the hardware of the iPhone, or need protection?

  • tabs and windows from last session won't load

    When I start up the computer and open Mozilla everything that happens is a blank tab what I had of the previous session are gone. I tried to go into the options and under general to open them and that doesn't seem to work, and when I go to my top men

  • Apple won't let me download iTunes

    Hello When I try to download iTunes 32-bit (this is my system) it asks me to download iTunes 64-bit because my PC is 64-bit. It is not, it is 32-bit. When I try to download 64 bit, Windows just says: "this is not a valid Win32 application". Help?

  • help for the scores of base... Please... !!!

    I m not able to increase my base of processors score 4.4 then more where rather, he didn't used to show 5.5 How can I increase my other scores 2... Please help...!