Am I fooled by GREP or ...

I have documents with ancient Corel Ventura markers in plain text for index topics. By script I convert the markers to topics, crossreferences etc. The script might look familiair: it's a modified version of index_rebuild by Peter Kahrel. Although the script seems to work quite well, I discovered some odd behaviour.
Two different Ventura markers not seperated by any character are individually recognized if I GREP them manually. After running the script only the first marker has been converted to an Indesign index topic (and can be found in the Index panel).
The Ventura markers look like this: <$I[]Topic;sub topic>
The situation discribed above looks like this: <$I[]Windows 7;64-bits><$I[]Windows 7;32-bits>
Could anyone please explain why the second marker isn't converted?
var myDoc = app.activeDocument;
if (myDoc.indexes.length == 0) myDoc.indexes.add();
var index = myDoc.indexes[0];
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
app.findChangeGrepOptions.includeFootnotes = false;
app.findChangeGrepOptions.includeHiddenLayers = false;
app.findChangeGrepOptions.includeLockedLayersForFind = false;
app.findChangeGrepOptions.includeLockedStoriesForFind = false;
app.findChangeGrepOptions.includeMasterPages = false;
app.findGrepPreferences.findWhat = '<[$][AIS]?\\[\\]([-.\\d\\w\\s]*);*([-.\\d\\w\\s]*)>';
var entries = myDoc.findGrep();
for (i=entries.length-1;i>=0;i--){
    var entry = entries[i];
    var indexType = 0;
    var str = entry.contents;
    if (str.indexOf('<$I') !=-1){
        indexType = 0; // gewone indexingang
    else if (str.indexOf('<$A') !=-1){
        indexType = 1; // See also
    else if (str.indexOf('<$S') !=-1){
        indexType = 2; // See
  switch (indexType){
    case 0:
    var array = str.substring(str.indexOf(']')+1, str.indexOf('>')).split(';');
    var new_top = index.topics.add (array[0]); 
    for (var k = 1; k < array.length; k++)
        new_top = new_top.topics.add (array[k]);
        new_top.pageReferences.add(entry, PageReferenceType.currentPage);
    break;
    case 1:
    var array = str.substring(str.indexOf(']')+1, str.indexOf('>')).split(';');
    var new_top = index.topics.add (array[0]); 
    var new_ref = index.topics.add (array[1]);
    var new_crossRef = new_top.crossReferences.add(new_ref, CrossReferenceType.seeAlso);
    break;
    case 2:
    var array = str.substring(str.indexOf(']')+1, str.indexOf('>')).split(';');
    var new_top = index.topics.add (array[0]); 
    var new_ref = index.topics.add (array[1]);
    var new_crossRef = new_top.crossReferences.add(new_ref, CrossReferenceType.see);
    break;
app.findGrepPreferences.findWhat = '<[$][AIS]?\\[\\]([-.\\d\\w\\s]*);*([-.\\d\\w\\s]*)>';
app.changeGrepPreferences.changeTo = '';
myDoc.changeGrep ();

Your GREP expression is not the problem, nor how the script collects the matches. The problem is a bizarre bug (which I didn't know about). You can see what happens if you comment out the last three lines in the script so that your codes stay in the text:
looks like this: |<$I[]Windows 7;64-bits|><$I[]Windows 7;32-bits>
Here the vertical bars show where the script places the index markers. These markers are always placed at the first insertion point of the referenced object, except when that insertion point is preceded by <>()= and a handful of other symbols. That's why the first index marker is placed correctly right before <, the second one is placed one insertion point too early, before >< instead of after it.
The solution seems to be to place the leading < in a lookbehind:
app.findGrepPreferences.findWhat = '(?=<)[$][AIS]?\\[\\]([-.\\d\\w\\s]*);*([-.\\d\\w\\s]*)>';
Peter

Similar Messages

  • Urgent Grep Help

    Hi guys,
    I've just had a brain fart and can't work this out. I need Grep help...like now, please....
    I need to search for Uppercase words and the begining of paragraphs so I can apply appropriate style...
    It a 700 page book and I don't want to do this manually...
    From this:
    To this:
    ARRRGGGHH...
    Marcus

    You might be fooled by those darn-it computer programs that take stuff literally.
    ^\u\u
    searches for two uppercase characters at the start of a paragraph. Is that the same as this?
    ^\L\L
    (search for Not Two Lowercase characters). No it isn't Check out these examples:
    A case where it works.
    An odd case where it will fail.
    The first will not be found by \u\u but will by \L\L. The second will not be found by either.
    I think the mix-up may be because of the difference in semantics between "uppercase" and "not lowercase". "Not lowercase" is uppercase, but also digits, space, punctuation and everything else (besides lowercase, then).

  • Finding Both ( and ) open and closed as the same time in grep

    Hi,
    I have a character style I want to apply to all the () in my document.
    In the GREP area, the drop down shows I can select one at a time and make the change.
    Is there a way to find both at the same time regardless of how many characters are in between?
    thanks
    babs

    Hi Rodney,
    I have an update here.
    Ok-so yesterday everything worked great...
    Today, it's acting very weird.
    I am using the same find and change GREP I used yesterday: To find the (or)
    And i am changing it to the character style I made with the baseline shift change. It worked perfectly yesterday, and now it's deleting the ()????
    I thought maybe the document might be corrupt, so I made a new one and tried it and this was even worse. I had a bunch of () in the file and asked it to find in the GREP  [\(\)] and change to a character style I made and it told me it could not find any?
    Even if I chose, document, all documents selection, story, nothing worked???
    I trashed all the InDesign Prefs but still no go.
    Is this GREP stuff really that buggy or do you think it is something with my software and machine? If you have never seen anything like this, then I will throw up a new forum and try to find out if outers ahve problesm with this stuff.
    thanks!!
    babs

  • Grep command in Solaris 10

    Hi all,
    I linux i can use this command
    grep -C 3 err /u01/oracle/admin/ORCL/bdump/alert_ORCL.log
    How can i do this in Solaris 10?
    Thanks in advance!
    Dan.

    This work perfectly!
    -bash-3.00$ /usr/sfw/bin/ggrep -C 3 err /u01/oracle/admin/ORCL/bdump/alert_ORCL.log
    Thank you all!
    Dân
    Edited by: Dan on Jan 9, 2012 10:36 PM

  • Cross reference + GREP + excluding text

    I would like to know if anyone has a solution to the following problem.
    I have a paragraph style which I use to label tables within my document. In the paragraph style I have set up numbering (under Bullets and Numbering) so that each heading appears as "Table 1.1 School Children in HK" or "Table 1.2 School Children in China" the code I have entered in the 'number' field of the paragraph style appears below:
    Table ^H.^#^/
    I have inserted the word 'Table' prior to the rest of the code so that the label is correct.
    When I create cross references I select 'Cross Reference Format' to be 'paragraph number' the problem is, however,  that the word 'Table' is picked up as part of the 'paragraph number' because of the settings in the Paragraph Style. The end result looking like this:
    The result is fine if you are cross referencing a single table per sentence, however, if you are dealing with multiple tables in plural this is a problem. What I would like to achieve is this:
    Does anyone know if there is a way to achieve this by editing the 'Cross Reference Format' so that the word 'Table' disappears when the cross reference is generated? Perhaps with GREP?
    I would really appreciate your help.

    Hi Tom,
    Im following standard English conventions (UK, if you will)  and the format at the moment is a wee bit clunky when you have to write something like 'Table 7.1, Table 7.2, Table 7.3, Table 7.4 and Table 7.5.....' as will be the case later in the document. The other arrangment of 'Tables 7.1, 7.2, 7.3, 7.4 and 7.5.....' is much shorter and easier to read - brevity is essential in this document because of limited word count.

  • More help with GREP needed

    I have been attempting to create some nested styles.
    So far, I am getting the hang of it.
    I have created a grep style that will make all text after the word "NOTE: " into italic. Also, I have grep style that makes all text that is "FIGURE +\d+\d" into bold text.
    The problem I have is that if the word "FIGURE " etc. is in the italicized note text, then it will not become bold.
    For example: "Operate the switch to begin the process (FIGURE 3-3). Make sure guards are closed (refer to FIGURE 3-1)."
    That works fine, and "FIGURE " is bold. However, when I change the sentence by adding "NOTE: Make sure guards... " it all becomes italic, and I loose the bold on "FIGURE 3-1"
    So, is there a way to augment my italic grep with some kind of inclusion... as if I were saying "if "FIGURE +\d+\d" make that is bold italic"
    sorry for the long-winded attempt to describe what I want to do.
    Thanks in advance for help.
    RPP

    RPP,
    The trouble is that in GREP style you can find text but not formatting, so you can't say something like "find FIGURE only when it's italic". In the Find/Change dialog you can, but in GREP styles you can't.
    You also can't say "look for FIGURE if it's preceded by NOTE: and any characters in between". Unfortunately, lookbehind can't cope with variable-length text. So if you always have "NOTE: Refer to FIGURE ...", then you can use lookbehind and you set-up would be this:
    apply italic to FIGURE [-\d]+
    apply bold to NOTE:.+
    apply bold-italic to (?<=NOTE: Refer to )FIGURE [-\d]+
    The first parenthetical is a lookbehind: in this case, FIGURE looks behind, meaning you find FIGURE only when it's preceded by "Note: Refer to", which is not matched itself. So bold italics would be applied only to FIGURE [-\d]+, and only when preceded by ...
    But you're not likely to have such fixed text. When you have just a few alternatives, you can list them as alternatives, so if you always have "Note: Refer to " or "NOTE: See " you could salvage your set-up, but with more than let's say three alternatives it gets messy.
    (?<=NOTE:.+? )FIGURE [-\d]+ , which you would hope would match any text from NOTE: to FIGURE, doesn't work as a lookbehind.
    Peter

  • ID-CS4 -JS - - Can't find using Grep options - Reg.

    Dear All,
      Here I have a doubt about the "Find / Change Grep" in InDesign CS4.
    I can find the "Force Line Break" using the Grep options : ([a-zA-Z]*)-\\n([a-zA-Z]*)]
    Some time this Grep is working, some time this is not working ...
    I don't know what I made the mistakes. Please let me know any one can suggest and modify the below coding.
    I supposed to close and re-open the InDesign CS4 and ExtendScript tool, then First time this Grep is working fine...
    So I confused this. Please any one can give me a solutions.
    //================= Coding ==================//
       var myDoc=  app.activeDocument;
           app.findChangeGrepOptions.includeFootnotes = false;
           app.findChangeGrepOptions.includeHiddenLayers = false;
           app.findChangeGrepOptions.includeLockedLayersForFind = false;
           app.findChangeGrepOptions.includeLockedStoriesForFind = false;
           app.findChangeGrepOptions.includeMasterPages = false;
           app.findGrepPreferences.findWhat = "([a-zA-Z]*)-\\n([a-zA-Z]*)";
             mySearch = app.findGrep();
             for(var myForce =0; myForce<mySearch.length; myForce++)
              app.select(mySearch[myForce]);
              var mySel = app.selection[0];
               myConts = mySel.contents;
              app.select(mySearch[myForce]);
              var mySel = app.selection[0];
               myConts = mySel.contents;
              app.findGrepPreferences = NothingEnum.nothing;
               app.changeGrepPreferences = NothingEnum.nothing;
    //=============== End of the Coding ========================//
    Please any one can kindly help me....
    Thanks & Regards
    T.R.Harihara SudhaN

    Dear Vaasu Devi,
      Many thanks for your reply...
    I found, where I mistaken....
    Here My Correct Code :
    //================= Coding ==================//
       var myDoc=  app.activeDocument;
           app.findChangeGrepOptions.includeFootnotes = false;
           app.findChangeGrepOptions.includeHiddenLayers = false;
           app.findChangeGrepOptions.includeLockedLayersForFind = false;
           app.findChangeGrepOptions.includeLockedStoriesForFind = false;
           app.findChangeGrepOptions.includeMasterPages = false;
           app.findGrepPreferences.findWhat = "([a-zA-Z]*)-\\n([a-zA-Z]*)";
             mySearch = app.findGrep();
             for(var myForce =0; myForce<mySearch.length; myForce++)
                        app.select(mySearch[myForce]);
                         myConts = mySearch[myForce].contents;
                         $.writeln(myConts);
              app.findGrepPreferences = NothingEnum.nothing;
               app.changeGrepPreferences = NothingEnum.nothing;
    //=============== End of the Coding ========================//
    app.select() is working fine, meanwhile, I get the selection of the contents. That time only its throw the Error message. So I used to divert, app.select and Select Value of Contents to pass the "myConts" variable then I will do the other funtions.... Now My this time I'm not getting the Errors...
    Thanks Once again
    Regards
    T.R.Harihara SudhaN

  • Trying to use grep from within java,using exec command!

    Hi all!
    I would like to run a grep function on some status file, and get a particular line from it, and then pipe this line to another file.
    Then perfom a grep on the new file to check how many of the lines above are present in that file, and then write this value to a new file.
    The final file with a numerical value in it, i will read from within java,as one reads normal files!
    I can run simple commands using exec, but am kinda stuck with regards to the above!
    Maybe i should just do all the above from a script file and then run the script file from exec. However, i dont want to do that, because it kinda makes the system dependent,..what if i move to a new machine, and forget to install the script, then my program wont work!
    Any advise?
    Thanks
    Regards

    With a little creativity, you can actually do all that from the command line with a single command. It'll look a little crazy, but it can be done.
    Whether the script exists on the local machine or not has zero to do with platform indpendence. You assumedly have to get the application onto the local machine, so including the script is not really an issue at all. However, you're talking about system independence, yet still wishing to run command line arguments? The two are mutually exclusive.

  • Doubt in GREP

    Hi ALL,
    Doubt in GREP:
    Working in Glossary, my requirement is upto first colon ":" i want to apply characterStyle after that give "Em Space".
    How can we find first colon or commo etc.
    I am using Zero or One Time

    1. I have never, ever, used Data Merge. Can you supply sample files and a written explanation of each of the eight items in the Data Merge menu? I can't promise I'll ever need it, but thanks anyway.
    2. Please, please, do not use the word "doubt" Ever Again. I seriously doubt you know how to use it correctly. Use "question" if you are in doubt about when to use it correctly. Thank you. (Should you doubt my knowledge of English, then you are correct -- I'm not a native speaker either. But as you can see practise obviosly makes perfect.)
    3. InDesign Help has all the proper help on GREP. It's right here: http://help.adobe.com/en_US/InDesign/6.0/WS1952D538-1335-4b1d-BA5E-FA5A176FDC9Fa.html and I got that by typing in "GREP" in the Help search box.
    4. Why would anyone need a file and a list of examples telling how to use these particular parts of GREP? It's rather the other way around: if you need something that cannot be done with a regular search, read the help on GREP (see above) and check if the functions and constraints for each of these match your requirements. If so, there are usage samples on the Help page; and if not, it probably cannot be done, or you are looking at it the wrong way.

  • Report S_ALR_87012993 issue: GREP blocks

    Hello experts,
    When I run report S_ALR_87012993 I get the following error:
    "Internal error: More then 999 GREP blocks were requested"
    Message no. GR215
    Diagnosis
    An internal error occurred in the Report Writer.
    When running the program, you selected the option to store your results permanently.  However, when the selected data was stored in blocks in the GREP file, the maximum number of blocks was exceeded.
    System Response
    The selection program was terminated.
    Procedure
    Inform your system administrator.
    You may have to increase the block size for the GREP blocks.
    Is there anyone who knows what the problem is and how it can be solved?

    The solution that worked for me was:
    1.-Implement note 64537.  Import transport request of the change to your productive client.
    2.-Regenerate report group using transaction code GR55 using report group 6O00.
    3.-Run report S_ALR_87012993 again and it will work.
    Best regards!
    Alex.

  • A Unix question: grep command

    Hi all,
    I have a directory which contains more directories, and each directory has more directories inside, which in turn may or may not contain Java files. I need to use the grep command in the way that from the first directory goes into the directories recursively, finds the Java files and tell me what files have the PATTERN= "Basic Import Validation".
    I used the grep like this, but guess its wrong since haven't received any response so far. Can sb. please tell me if I've used the command correctly or how should I change it? Any help is greatly appreciated.
    dir> grep -r --include="Basic Import Validation" *.java                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I gues the reason this isn't working for you isthat
    -r means "process all subdirectories of any
    directories listed in the command line args."
    grep never sees the *.java that you supply. Theshell
    grabs that and expands it to list all the .javafiles
    in the pwd.If you can, would you please explain a little more,
    what you meant by above?
    grep whatever *.java When you type that command, your shell (bash, zsh, ksh, tcsh, etc.) is the program that receives that string on its standard input--like Java's System.in. The shell sees *.java and expands it into a list of all the .java files in the current directory. Then the shell invokes grep, and passes on the list of those java files.
    But the list of .java files in the pwd has nothing to do with any java files that might be in subdirs.
    If you use the -r arg, it seems that, in the list of "files" (where you put *.java), if any of those "files" are in fact directories, then -r means to look in files in that dir and its subdirs, rather than treating that arg as a file to examine.
    So you'd put . (dot) as your current dir, and then use the --include to tell grep which files to process and which to ignore.
    I'm sure about the shell expanding *.java. I'm not completely sure about my interpretation of -r and --include, but I'm pretty confident that's right.
    As you said, the way I used grep, didn't return any
    result. Your solution however, gave me results and
    found the Java files containing the PATTERN. Thanks a
    lot.You're welcome.
    If you're still interested, it's probably worth trying out my slight modification to your original solution. If it works, it's a bit cleaner and simpler.

  • GREP: How can I place a (for example) "*" before and after bold text with GREP?

    Hi there.
    I have a string of text as such:
    I want to use GREP to insert a "*" (asterisk) before and after each bold part. Can I do that with GREP?
    (if asterisk is a problem, I can use a different character)
    Any help would be appreciated.

    Hi Schmaltzkopf,
    try this:
    Have fun

  • [AS] How to change a paragraph style within any folder in Find Grep?

    I want to change both text and paragraph style
    I do that job very easily until I put paragraph styles in a folder
    How to express the paragraph style "passage" within the folder "1st" in AppleScript?
    In line 18 below, "1st:passage" may be wrong... so I've tried and search for an hour, but I can't get the answer..
    sorry for bad english
    my main()
    on main()
      mySnippet_test()
      myTeardown()
    end main
    on mySnippet_test()
              tell application "Adobe InDesign CS5.5"
                        set myDocument to document 1
                        set find grep preferences to nothing
                        set change grep preferences to nothing
                        set include footnotes of find change grep options to false
                        set include hidden layers of find change grep options to false
                        set include locked layers for find of find change grep options to false
                        set include locked stories for find of find change grep options to false
                        set include master pages of find change grep options to false
                        set find what of find grep preferences to "\\n"
                        set change to of change grep preferences to "\\r"
                        set applied paragraph style of change grep preferences to "1st:passage"
                        tell myDocument
      change grep
                        end tell
      --Clear the find/change preferences after the search.
                        set find grep preferences to nothing
                        set change grep preferences to nothing
              end tell
    end mySnippet_test
    on myTeardown()
    end myTeardown

    Replace the red line with… Replacing name strings to yours…
    set myStyle to paragraph style "Style A" of paragraph style group "Style Group 1" of myDocument
    set applied paragraph style of change grep preferences to myStyle

  • IDCS5/MAC - GREP Style to uppercase a letter after a dash between words

    G'day there.
    I'm trying to create a GREP style to uppercase a letter after a dash between words, more specifically where one word starts with a capital and the one after a dash does not e.g. Lorem-ipsum = Lorem-Ipsum
    The full story is that there is a standing indesign file used over and over again which data-merges surnames which are in a massive database. The data arrives in uppercase and our mail barcoding software allows us to Title Case certain fields, but the Title Case behaviour has the following results:
    * McLeod = Mcleod
    * D'Agostino = D'agostino
    * Smith-Bunting = Smith-bunting
    i've been able to solve the McLeod = Mcleod problem with the following GREP style:
    (?<=Mc)\l
    and then apply a character style which is nothing more than All Caps.
    similarly, i've been able to solve the D'Agostino = D'agostino problem:
    (?<=\u')\l
    and once again apply the All Caps style to the affected letter. This also solves the O'leary problem to O'Leary.
    However, when I try these GREPs to grab the Smith-bunting style issues:
    (?<=\u\l+?-)\l     or   (?<=\u\l{2,}-)\l
    the search won't work, nor will it work with regular Find/Change GREP replace... yet the expression \u\l+?-\l will find the block that i'm after.
    I could use the search
    (?<=\l-)\l
    and this will find Smith-bunting = Smith-Bunting... but will also find co-operate = co-Operate (will find two words joined with a dash but  starts with a lower case letter).
    This is fine if the para style is applied to the  line in the address block containing the client's name, but if the name is referred to in a block of text, then that block of text has to have the para style with the GREP style applied, and any dashes between words in that para behave the same way as the name.
    yes, it is possible to go into excel and use the =PROPER(affected cell) and fix the Smith-Bunting fields, but i'm trying to create a solution which will work solely in InDesign so that other operators in the office (who aren't familiar with excel) can simply open the standing file and dump in the txt database generated by the mail barcoding software.
    there are other names that the mail barcoding's title-case fouls up i.e.
    * MacLeod = Macleod
    * van der Graaf = Van Der Graaf
    * van Diemen = Van Diemen
    but a GREP to make Macleod become MacLeod may foul up Mack, Mackie or Macy to become MacK, MacKie or MacY.
    I also know that a GREP for the van der or van won't work as the style will only force letters to become All Caps, not uppercase to lower...
    Ultimately...
    does anyone know a way to GREP style (not a find/change GREP) a fix for Xxxxx-xxxxx = Xxxxx-Xxxxx?
    Colly
    Colecandoo.

    I agree with Haakenlid on his Dirty-Workaround view -- I feel data should be entered the way it oguht to, not altered by some magic GREP styling -- but then again I can also sympathize with your POV re: a fire-and-forget solution even your dumbest operator can't miss.
    Oh the rigors of life.
    If you are totally, absolutely certain you want to do this by GREP, use this:
    (a) Set a To Capitals character style to the string
    \b\u\l+\-\l
    -- this will magically transform "Hon. Lt. Sir John Forsythe Blunt-object" into "BLUNT-Object".
    (b) Then override ( ! ) the first half again with another character style that removes the To Capitals attribute ( ! ):
    \b\u\l+-(?=\l)
    Notice how this expression is exactly the same as the above one, except for the very last code -- the next lowercase must also be caught, but now using a lookahead so its formatting won't be affected.
    This removes the All Caps override from the first halve, changing it from "BLUNT-Object" back to "Blunt-Object".
    Lots of side effects, I'm sure. Perhaps it is safer to teach your operators to run a single script.

  • How to pass the grep result into a variable in Unix

    I have the following statements in my unix batch script:
    JOBNAME=`grep "$1" rssc_plsbatch.txt|awk -F'~' '{print $1}'`;
    PROCNAME=`grep "$1" rssc_plsbatch.txt|awk -F'~' '{print $2}'`;
    JOBDESC=`grep "$1" rssc_plsbatch.txt|awk -F'~' '{print $3}'`;
    PARMS=`grep "$1" rssc_plsbatch.txt|awk -F'~' '{print $4}'`;
    I want to grep the the first line in the text file and pass it to a variable and then using awk programming, I want to print for each variable (JOBNAME, PROCNAME, JOBDESC and PARMS), instead of using grep 4 times.
    Can somebody please help.
    Each line of my text file is in the the following format:
    00001JOB1~PROCNAME1~This is a procedure~10,'A','B'~
    And also I want to check whether $1 passed (part of JONAME) is not fount, then it should exit with error message, if $1 (input parameter) does not match, I want to exit the program, instead of processing further statements.

    If you want to return error codes, you can do that with the return command.
    If the process name isn't found, grep will return a specific error code... from man grep
    Normally, exit status is 0 if selected lines are found and 1 otherwise.
    But the exit status is 2 if an error occurred, unless the -q or quiet or silent option is used and a selected line is found.
    So you can use the exit code of grep in an if statement to decide what return code you want to return with your own script.
    Mike

Maybe you are looking for

  • Print button on playbar

    I noticed a Print button on a playbar on a demo about aggregator (on Adobe's site).  How can i get a print button like that?  Is that a widget that costs or is it available with version 6?  Thanks!

  • Polish letters not displayed correctly in quality notification long text

    Hello, in quality notification: when trying to write text in Polish language, some non-english letters are displayed incorectly. I did not find possibility to change the text language as in e.g. sales order texts. Using PL as login language solves th

  • How to disable a particular row in a JTable

    How can a disable only a particular row/column in a JTable. I am trying to create an XML Notepad type of application for which I need the row which contains the root element or any element which has a child element to be disabled. How can I achieve t

  • Email in Java

    Okay. How do you make a simple mail program. I all I need is a little sample code that when run with the email address as command line parameter send the email the exits. No gui Any help would be hot...

  • Adobe flash player won't install on my Windows 8 computer !!! Help

    I own a Toshiba (new Computer) . I have Windows 8 already installed.  When I want to watch a video someone has sent me, it asks me to download Adobe flash player.  So when I click on download, the flash player screen comes up empty.   What is wrong?