Conversion of underlined text of the word by using a script

Hello

When you place a Word document, I want to use a script to convert the text underlined italic character Style (which I have already created). Which should read the line of app.findGrepPreferences to find the underlined text?

Thank you.

It's as simple as that:

app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.underline = true;
app.changeTextPreferences.appliedCharacterStyle = app.activeDocument.characterStyles.item("italic");
app.changeTextPreferences.underline = false;
app.activeDocument.changeText();

unless she needs deep integration into your current script.

Related issues of script can better ask in the forum script: InDesign Scripting

Tags: InDesign

Similar Questions

  • How can I transfer text of the word in the page web firefox supported?

    When I try and copy and paste text from a word in a web page document supported by firefox, it is said that it is impossible, but there must be a way to do it without having to retype everything

    You are welcome.

    Could you please click the button "solved it" to take your post out of the loop?

    Thank you.

  • Table filters break when using of text with the words "AND" or "OR".

    With the help of JDev 11.1.1.3.0

    Hello-

    The filters in the table seem to treat the words 'and' and 'or' differently when they are used in the filters in the table. Is it possible to change this behavior? I have a few sets of data where these words appear in the data. When the user performs a search on the data and uses the words 'and' or 'or' the filter no longer works. (He returned lines nil or returns all the rows.)

    Test case:

    1 create a filterable unalterable for the resources table. DEPARTMENTS table.
    2 set the Department name column to be case insensitive in its filtering:
                  <af:column sortProperty="DepartmentName" filterable="true"
                             sortable="true"
                             headerText="#{bindings.DepartmentsView1.hints.DepartmentName.label}"
                             id="c2" filterFeatures="caseInsensitive">
                    <af:outputText value="#{row.DepartmentName}" id="ot4"/>
                  </af:column>
    3. run the page.
    4. in my HR. Data REPRESENTATION, there is a service with the name "control and credit." In the service name filter, type
    a. 'control' and press ENTER - service of "control and credit" only comes
    (b) "control and" and press ENTER - only 'control and credit' Department appears
    c. 'control and credit' and press ENTER - ZERO departments appear.

    5. the Test cases for "GOLD". In the service name filter, type
    a. 'or' and press ENTER - displays all departments.


    I tried a few other words SQL in the filters but only 'AND' and 'GOLD' seems to break things.
    Is this a known bug?
    Is there a solution?

    Thank you for reading my question

    The list of documents http://docs.oracle.com/cd/E21764_01/web.1111/b31974/web_search_bc.htm#BABCCBCF 'AND' and 'GOLD' as 'Operators of Query-by-Example search criteria' are not text but the operators.
    You can try to join the text in the filter with single or double quotes and see, is that it treads in the form of text.

    Timo

  • Text of the word IDCS4 cannot capture (defining poetry...)

    I see books on poetry and the approval of the withdrawal right a few words.

    Many lines is normal (between the left edge) but others are aligned on the right side.

    This text comes from Word with hyphens but no style is present at all.

    The 'normal' lines show 0 values in the fields (0 left indentation, withdrawal of 1st line o, etc.)

    Special lines are always showing a withdrawal from front-line between 50-70 mm (they change in each poem)

    If I apply a style all the formatting is lost.

    And I can't look at the find/replace indented lines because ALL values change.

    But these special lines are marked in some way. They are the only ones that are indented.

    I want to characterize them.

    Is it possible?

    Hi Mariana (not a not post here before? "I see '1 messages'?)

    Yes, it's a common problem. You want to apply your styles, but you can't because it would remove the formatting that you want to keep. Generally, concerning than fat, italic and similar, but every now and then something else pops up.

    You want to apply the same style to each of these lines and with just the preserved dash? I'm thinking "script opportunity" here.

    There are, it seems, two ways to handle this with a script. The simplest is to 'save' the indent, apply the correct style, then put the value of back withdrawal - what makes a style "Style +»

    Another way is to make a new style for each line, "based on" the right style, but with the dash on the right values for this line.

    (And I should probably tell you right away that the disadvantage is that it might make a lot of new styles...)

  • Paste the text of the word in Apex Textarea

    Hi people,

    I have a customer who wanted to change their forms of Word (something like customer survey) screens Apex... everything went a lot, but they realized that when they try to copy text in the forms of the word in Apex textareas some characters will appear as a up-side-down question mark. Some characters are apostrophe, consecutive points (...) and so on. I don't know what is the best way to handle this, I think to write a function that escapes the characters of a text passed and match the decoding itself each time users encounter a character of bad news... but maybe someone has a better idea...


    Thank you
    Sam

    Execute the statement select in the APEX or Developer SQL in BOTH environments and see if they match, otherwise you will need to discuss with your DBA...

    select * from v$nls_parameters where parameter='NLS_NCHAR_CHARACTERSET';
    

    Thank you

    Tony Miller
    Webster, TX

  • Text of the tag selected using script

    Hello

    I want the perticular the text selected in the InDesign document tag, I get an option to tag manually by right-clicking on the selected text, but how can we do this using Java script.

    Please help me.

    TextSelect.jpg

    Try this,

    App.Selection [0] .associatedXMLElements [0].xmlElements.Add ("Para", app.selection [0])

  • Problem to find the Position of the cursor by using Java Script for an input TextField

    Hello

    I have a problem to find the position of the cursor in a field inputText component.

    The following code of java script to achieve. The same functionality works fine if I run in a simple html page. But when it is used the same javascript inside the jsff does not the position of the cursor.
    var adfComponent = AdfPage.PAGE.findComponentByAbsoluteId("r1:1:it3");
    var adfComponentClientId = adfComponent.getClientId();
    var div = document.getElementById(adfComponentClientId + '::content');
    div.focus();
    var docSelectionRange = document.selection.createRange();
    
    docSelectionRange.moveStart ('character', -div.value.length);
    
    var iCaretPos = docSelectionRange.text.length;
    
    alert("iCaretPos --> "+iCaretPos);  ---> This statement always returning '0'. Instead, i want the cursor position inside the text box.
    Please let me know what I'm missing.

    For your reference, sending the sample page html that works fine with the same kind of code.
    <html>
     
     <body style="font-family: tahoma; font-size: 8pt;">
     
      <script language="JavaScript">
     
       /*
       **  Returns the caret (cursor) position of the specified text field.
       **  Return value range is 0-oField.length.
       */
       function doGetCaretPosition (oField) {
     
         var iCaretPos = 0;
              alert(oField);
         if (document.selection) { 
     
           // Set focus on the element
           oField.focus ();
     
           // To get cursor position, get empty selection range
           var oSel = document.selection.createRange ();
     
           // Move selection start to 0 position
           oSel.moveStart ('character', -oField.value.length);
     
           // The caret position is selection length
           iCaretPos = oSel.text.length;
         }
     
         // Firefox support
         else if (oField.selectionStart || oField.selectionStart == '0')
           iCaretPos = oField.selectionStart;
     
         // Return results
         return (iCaretPos);
       } 
      
     
     
      </script>
     
      <form name="blah">
     
       Text Field: <input type="text" name="nameEdit" value="">
       <input type="button" value="Get Caret" onClick="document.getElementById('where').value=doGetCaretPosition (document.forms[0].elements[0]);">
    <input id="where">
      
     
      </form>
     
     </body>
     
    </html>
    Thank you and best regards,
    Kiran kristelle

    Published by: Kiran kristelle on February 6, 2012 12:00

    ... had the chance to look at the source code of the sample. ADF Faces renders text as HTMLTextArea fields when the value of the rows property. The JavaScript code used in the example of client works differently for FF and IE if the input is a text box. This could be a problem in IE or just used JavaScript code. The rows back to a single line (remove) property makes the text as HTML input feldworking with the JavaScript for IE and FF.

    Frank

  • How to copy files on the USB key using batch script even if the drive letter for the USB v.

    Hello!
    I am trying to create a batch file that will copy: C:\My Folder\myfile.txt on a USB key. I created the file "Tango.spe" on the USB and used the "If exist' readers in order to search for the file on USB connected." "

    Here is my code so far:

    off @echo

    If exist D:\Tango.spe set variable = % BKPDRV %

    If exist E:\Tango.spe set variable = % BKPDRV %

    If exist F:\Tango.spe set variable = % BKPDRV %

    If exist G:\Tango.spe set variable = % BKPDRV %

    If exist H:\Tango.spe set variable = % BKPDRV %

    If exist I:\Tango.spe set variable = % BKPDRV %

    If exist J:\Tango.spe set variable = % BKPDRV %

    If exist K:\Tango.spe set variable = % BKPDRV %

    If exist L:\Tango.spe set variable = % BKPDRV %

    If exist M:\Tango.spe set variable = % BKPDRV %

    xcopy/y/i/h/k/e 'C:\My Folder\myfile.txt' % BKPDRV %


    Can someone tell me what I am doing wrong?

    Thanks in advance :)
    Andes

    Salvation, Andes,
    Please go to the Microsoft Community Forums.
     
    This problem would be better suited to the MSDN Forums community.
    Please visit the link below to find a community that will provide the support you want.
    http://social.msdn.Microsoft.com/forums/en-us/categories
     
    Thank you.
  • Problems by placing the text of the word

    I am placing a MS word doc text in my master pages in InDesign and it imports only the part of the text, the first 8 pages and after a lot of blank pages, I see the little red as well as in the box in the lower right corner of the text box, but no matter how many times I continue the flow to the next column the rest of the text will not appear. The MS doc is in the fonts, I did not, but I thought I could do a search and replace once the text flows in because there are a lot of bold and italic, put in shape that I don't want to lose by copying and pasting from Word into InDesign. Anyone have any idea why this is happening, or what I can do to get around all of the 36 pages of text?

    I often see complete Word of the nonbreaking spaces files, too. It is disabling the break a too large number of nonbreaking space online to send the rest of the doc in excess. It is not rare AT ALL when you crop in ID, especially if the column width is different. A picture of great line that would too.

    In addition to reviewing the file in Word, you can place the cursor to the last point see you text in ID and open the story editor to see what is beyond. If it's not obvious (turn on nonprinting characters that you can see the nonbreaking spaces), choose the first two paragraphs in excess and leave the Dungeon options (can be on all lines solidarity or solidarity than hass all the lines together and have too many lines to fit to a page) or No Break is applied to the first line in excess. Check hyphenation, as well.

  • Export text in the word document

    Hello
    I have a projector that generates a report of the user at the end of a section of questions and answers. Currently, the report is saved in plain text format. The customer wants to add a text formatting (bold text and color) and join the file to open it in Word when double-clicked.

    Does anyone know of a way to save the text of a member of the cast as a Word document?

    Thank you
    Deryck

    frashjiveturkey wrote:
    > Does anyone know of a way to save the text of a member of the cast as a Word
    > document?

    Use rtf or html put in shape and give it knows what an extension .doc - Word
    do with it.

    You can get the rtf or html of a member of text file using member("whatever").rtf or
    Member("whatever").html - put in a variable and save it with a xtra
    fileIO, propSave or buddyFile.

    I did not have the last Director, so I don't know what the implications of
    Unicode will be.

    Andrew

  • Underline text on the entire width of the entire column?

    How to highlight text so that the line extends all the way to the edge of the column? Even if the text is not fully justified or not extends not to the edge of the column? I tried to do it with a style of character and tabs, but which proved to be rather tedious and seem unprofessional.

    For a single or two-line paragraphs, you can use nets of paragraph, but for more than that, I would say that it would be easier to super - impose your block of text on a set of rows that are locked to the starting grid.

  • GREP text between the words selection

    I want to select all of the text between [2a] and [F2A].

    The problem is that there are n paragraph between the 2 elements as in the following example:

    [2A]

    Lorem ipsum dolor sit amet.

    [ME] Lorem ipsum dolor sit amet.

    [KING] Lorem ipsum dolor sit amet.

    [F2A]

    I tried:

    (\[2A\]).+(\[F2A\])

    But there may be more than one error in my code. Any suggestion?

    Put "(?s)" at the beginning of your GREP for force "single-line" mode. "

    By default, GREP only works on a single paragraph, and so it stops when it encounters a hard return to the research. Simple line of setting mode allows to treat the hard return as any regular character.

    You can change the "." + "in the middle of your expression to. + ? ", to match the shortest chain possible. Default value is GREP catch as much as possible, so if you have more than once these codes in a text, it will happily select everything from the first to the last instance.

  • Narrator reads the text of the word document

    Narrator

    Hi Tehilahw,

    Welcome to Microsoft Windows Forums!

    Narrator works with other applications?
    If this isn't response return else you will need to visit the forums of office.

    Thank you for visiting the website of Microsoft Windows Vista Community. The question you have posted is related to Microsoft Office, and would be better suited to the Office Discussion groups. Please visit the link below to find a community that will provide the support you want.

    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Thank you and best regards,

    Bindu S - MICROSOFT SUPPORT
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Remove the device detached using powershell scripts.

    $E01 = get-esxcli - vmhost test01

    $ED01 = $e01.storage.core.device.detached.list () # I have 10 devices here

    $e01.storage.core.device.detached.remove ($ED01) error as follows

    PowerCLI C:\scripts > $e01.storage.core.device.detached.remove ($ed01)
    A specified parameter was not correct.
    method
    On line: 1 char: 41
    + $e01.storage.core.device.detached.remove < < < < ($ed01)
    + CategoryInfo: InvalidOperation: (:)) [], RuntimeException)
    + FullyQualifiedErrorId: MethodInvocationException

    How the list of devices in the individual list that needs to be removed, loop

    OK, some possibilities.

    (1) all the LUNS in the text file

    $luns = Get-Content luns.txt $luns | %{
       $e01.storage.core.device.detached.remove($_)
    }
    2) The first 5 LUNs 
    
    $e01.storage.core.device.detached.list() | Select -First 5 | %{
       $e01.storage.core.device.detached.remove($_)
    }
    3) The last 5 LUNs
    $e01.storage.core.device.detached.list() | Select -Last 5 | %{
       $e01.storage.core.device.detached.remove($_)
    }
    4) 5 randomly selected LUNs
    
    $e01.storage.core.device.detached.list() | Get-Random -Count 5 | %{
       $e01.storage.core.device.detached.remove($_)
    }
    
  • How to launch two executable files (excel file & a .exe file) at the same time using VB Script?

    Hello

    I need vb Script code to run exe files at the same time.

    I hope someone will help me!

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

Maybe you are looking for

  • Found hidden partitions?

    I bought a macbook 2010 used pro 15 '' out of my high school, when I got it I tried to format the hard drive (500 GB) and install El Capitan, but when I did I noticed that only 274 GB of it was available, there is a "recovery" partition, taking up ne

  • How to preload the video of kissanime to firefox for ios?

    HelloWatching a movie in kissanime, it is said to use the Firefox browser as it can preload the video. I just found out that it is available for my iPad. Downloaded right away and start using it. But I can't find how to preload the video. It is avail

  • Why 'options' to load when I load firefox?

    Just upgraded to win 7 pro 10, need to know how to load my old Firefox data in this version, and also why does options happen when I load firefox?

  • keep the red light of the research of e-mail messages

    Just red light will not stop looking for e-mail messages, despite the fact, I set the preferences to search E-MAIL when I'm trying to find something on my Mac. What is happening with this? MacbookPro, mid2010, with the help of el Capitan (but in fact

  • YouCam software problem!

    Hi all I could not install an update of HP drivers and downloads from the web site of the YouCam software that came with my HP Pavilion dv5-1009tx Entertainment PC. When I run the update it says that an older version of the YouCam software is already