Copy the text of the line of the cursor line

Hi all

I need to copy the texts of the clicked cursor line. I tried the code below, but does not. Please help for this.

Kur = new Array;

myDoc = app.activeDocument;

var salt = app.selection[0].lines[0].contents;//but the alert works very well

Alert (salt)

Kur.push (salt);

App.Copy (Kur);

App.Paste (kur); done only the text in the selection

Cursor blinked this line:

Screen shot 2015-06-04 at 4.20.02 PM.png

Select the line and copy and paste the separate framework:

Screen shot 2015-06-04 at 4.17.44 PM.png

Hi Selva,

If you have a single insertion point selected, you can use this code:

app.select(app.selection[0].lines[0]);
app.copy();
app.selection = null;
app.paste();

Uwe

Tags: InDesign

Similar Questions

  • Editor Windows Mail problem: copy the text only - no formatting.

    I send each week a report that contains digital data tables.  I used to copy the report from the previous week and simply insert new numbers (most of the entries are zero, so there is relatively little that really needs to be changed).  Then, a few weeks ago, when I copied the previous week report, none of the formatting got - just text copied.  And it's a terrible mess because all the columns compressed on the left margin with only a single space between them.  Column headers do not cover, etc.  It's more work to fix this mess only to re - simply type everything.  Once I get a line put in place in the columns, you would think that I could copy it as many times as necessary to re-create the table - then go back and fill in the changes - BUT NO!  Everything I copy is copied without any formatting being recorded.  What used to take me a minute or two now takes half an hour.  HOW CAN I MAKE THE COPY OF THE EMAIL AS WELL AS TEXT FORMATTING EDITOR?  I think that this problem started with the first report, I tried to create after the installation of Internet Explorer 9.  This is perhaps related to my problem.

    It's quite possible.  There are a number of issues in WinMail IE 9 has touched.  See www.oehelp.com/OETips.aspx#15 and I would say that uninstall you it.

    Steve

  • Copy the text in the field to other areas in the same PDF format?

    Is it possible to give the user an option to copy the text entered in certain areas to other areas in the same PDF? I want to do it is because I have the user fill in several fields of address (address, city, State, zip) and I have another section to ask a physical address (address, city, State, zip). I would like to users the ability to click on a button (?) to automically fill in the fields of physical address if the address is the same.

    Thank you

    Derek

    Here's a line of code that copies the text from the text field to the other. You can use it in the mouse event to the top of a button and add as many lines as required:

    // Copy value of one field to another
    getField("text2").value = getField("text1").valueAsString;
    

    Replace "text2" and "text1" with real field names that you use.

  • With the help of iPhone 6 s. try to copy the text message with a tap double and get a bubble with icons. How can I copy the message to paste in another?

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    maryml wrote:

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    Press and hold on the text and wait for the copy/more pop up.

  • Is there an easy way to copy the content of each message into a folder in a text file (without visiting each email, select, copy paste)?

    I need to scratch the data of a few 1000 + email. How can I believe more easily the content of these emails and either push in text files, or treat them with a script?

    Thank you

    Install ImportExportTools:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/ImportExportTools/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

    Copy the messages in a folder, select the folder, tools/ImportExportTools/export all of the messages in the text file / in the single folder.

  • Impossible to copy the text to clipboard error - I had tried everything include uninstall firefox and re install. I tried to disable all plugins and addons. I have to c

    Impossible to copy the text to clipboard error - I had tried everything include uninstall firefox and re install. I tried to disable all plugins and addons. I have to click 20 times on text to paste in all websites. What should I do about it? I use FF 22.0 worm, win 8 and the problem just a few weeks. Thank you

    You have zonealarm, if if this is the problem.

  • Cannot copy the translated web page of Google Translate text?

    It seems that this has happened after the last update of Firefox. I can't be able to copy the text into Google Translate box. I tried to use IE and that worked. I hope that you guys can test on your side to see if it works for you?

    I also tried with Disable Adblock Plus, but that did not help.


  • Skype for Symbian: cannot copy the text!

    Hi, I use Skype for my Nokia E52 and I can select text on the IM window by holding the SHIFT key with the help of the arrow buttons (navi). The problem is that I couldn't find a combination of path/button to copy the selected text in the Clipboard.

    How can I reach it? I appreciate the response.

    No help?

  • With pellets W510, how can we simulate a right-click of the mouse to 'copy' the text?

    Were you successful in highlighting a text in the Tablet, but having to use the application 'menu' to 'copy' the text, and then "Paste"? I found it is not easy with a Tablet and messy. Were you able to highlight text, and then simulate a right mouse button pressure and don't use DO NOT the menu function to 'copy' and 'paste' your text desired? If you did that, then I would like to hear from you! Kindly tell me how you did it. In case I don't come here very soon, U could please send a copy of your response to: [under the direction of privacy] Thank you!

    Of course, it's easy! Just hold the touch for a few seconds until you see a finger of yor box surround. When you release the button, it will give you the context menu.

  • How to make the default text size and line spacing in small Sticky Notes?

    How to make the default text size and line spacing in small Sticky Notes

    Hello

    I suggest that you try the method below and check if it helps.

    Method 1: analysis of auditor of file system (CFS)

    System File Checker is a Windows utility that allows users to find corruptions in Windows system files and restore the damaged files. To perform a scan of the SFC, check out the link: https://support.microsoft.com/en-us/kb/929833.

    Note: the steps for Windows 8/8.1, works perfectly with Windows 10.

    Method 2: clean boot

    A clean boot is executed to start Windows by using a minimal set of drivers and startup programs. This will eliminate software conflicts that occur when you install a program, an update or when you run a program in Windows. Follow the link to perform the clean boot: https://support.microsoft.com/en-us/kb/929135.

    Kind regards

    Angelo bar

    Microsoft community

  • Copy the text from the online site created by muse

    Hey,.

    People can not copy the text of some sites created by Muse?

    Is it because I chose the wrong police at my site?

    Best regards and thank you

    Tom

    In addition, you use system fonts?

    System fonts allow you to use the typography more unique, based on specific fonts (the Designer) have installed on your machine. For example, if you design a site that has a specific theme, such as a gardening site, you can install a unusual flower font that is not available in the web fonts Typekit library. It's good to apply sparingly system to the text fonts, but keep in mind that the text content will export as images. This means that the page takes longer to load and visitors will not be able to select, copy, or paste the text of the page. System fonts are also better suited for small pieces of text, such as headers. To make the site easy to use, avoid using fonts system for addresses, phone numbers and any content visitors can copy and paste in a calendar or e-mail message. Don't forget that some visitors have difficulty reading the text smaller and can set the browser to increase the size of the police; but this strategy won't help to read the text that is exported as image files. Remember that the search engines index text content search sites to define a site's ranking in search results. For these reasons, it is best to only apply the system fonts when you really need have an impact on the design. If there is a comparable web or Standard police, apply this police instead.

  • Copy the InDesign UI of Script text into the list item

    Hello world

    I wrote a script code user interface to create a terminology database.

    I want to be able to click on an item in the list of all the columns and copy the text in edittext field.

    I don't know if I need to create a button for this or is - it possible to do a right-click of the mouse to copy text?

    Here is the code:

    var w = new window (' dialog {text: 'Blatchford termbase', alignChildren: 'fill'} "");
    w.Spacing = 0;

    var headers = w.add ('group');
    headers. Spacing = 0;
    headers. Margins = [0,5,0,0];
    dimH var = [0,0,200,20];

    headers. Add ("statictext', dimH, '\u00A0English'");
    headers. Add ("statictext', dimH, '\u00A0French'");
    headers. Add ("statictext', dimH, '\u00A0German'");
    headers. Add ("statictext', dimH, '\u00A0Italien'");
    headers. Add ("statictext', dimH, '\u00A0Spanish'");
    headers. Add ("statictext', dimH, '\u00A0Norwegian'");
    headers. Add ("statictext', dimH, '\u00A0Russian'");
    headers. Add ("statictext', dimH, '\u00A0Turkish'");

    headers.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, [0.7,0.7,0.7],1);

    for (var i = 0; i < headers.children.length; i ++)

    headers. Children [i]. Graphics.font = scriptui.newFont ('Myriad Pro', 'fat', 16)

    var column = w.add('group{multiselect:true}');
    Columns.Spacing = 0;

    CGEM var = [0,0,200,600];

    var col1 = columns.add ("listbox", CGEM, ["Dorsiflexion", "Field", "trans-tibiale", "trans-fémorale"]);
    var col2 = columns.add ("listbox", CGEM, ["Dorsiflexion", "Field", "trans-tibiale", "trans-fémorale"]);
    var col3 = columns.add ("listbox", CGEM, ["Dorsiflexion", "Field", "trans-tibiale", "trans-fémorale"]);
    var col4 = columns.add ("listbox", CGEM, ["Dorsiflexion", "Field", "trans-tibiale", "trans-fémorale"]);
    var col5 = columns.add ("listbox", CGEM, ["Dorsiflexion", "Field", "trans-tibiale", "trans-fémorale"]);
    var col6 = columns.add ("listbox", CGEM, ["Dorsiflexion", "Field", "trans-tibiale", "trans-fémorale"]);
    col7 var = columns.add ("listbox", CGEM, ["Dorsiflexion", "Field", "trans-tibiale", "trans-fémorale"]);
    var col8 = columns.add ("listbox", CGEM, ["Dorsiflexion", "Field", "trans-tibiale", "trans-fémorale"]);

    var user_input = w.add ('group')
    entry var = user_input.add ('edittext', dimH, ");
    entry. Characters = 30;
    entry. Alignment = 'left';
    entry.active = true;

    col1. Selection = 0;

    converting the vars = user_input.add ('button', undefined, "Convert to lowercase");
    convert.onClick = function () {entry.text = entry.text.toLowerCase () ;}
    user_input.orientation = 'row';
    user_input. Alignment = 'left';

    w.Show ();

    Any help or comments would be greatly appreciated

    Try this

    col1.onChange =
     col2.onChange =
     col3.onChange =
     col4.onChange =
     col5.onChange =
     col6.onChange =
     col7.onChange =
     col8.onChange =
     function() {
      entry.text = this.selection? this.selection.text : "";
      }
    

    Loïc

    Ozalto | Productivity-oriented - Loïc Aigon

  • Copy the data from the selected record line

    Hello I use Oracle Forms Builder 10g.

    I want to copy a line from a record that populated the request but that the first lines can be copied when I click on it. I want to know how to copy the specific line-specific data when I click it. Thank you.

    Untitled 1.png

    using

    GO_RECORD(:SYSTEM.) MOUSE_RECORD);

    the current selected row updates as you click mouse a line. «: SYSTEM.» MOUSE_RECORD' gives you the line number of the recording, you click and it gives a value of '0' char if you click outside the record block.

  • Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Hello

    2796614 wrote:

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Of course, it is possible.  According to what the text file looks like to, you can create an external table that treats the text file as if it were a table.  Otherwise, you can always read the file in PL/SQL, using the utl_file package and INSERT of PL/SQL commands.

    You have problems whatever you wantt?  If so, your zip code and explain what the problem is.

    Whenever you have any questions, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the exact results you want from these data, so that people who want to help you can recreate the problem and test their ideas.  In this case, also post a small sample of the text involved file.

    If you ask about a DML operation, such as INSERT, then INSERT statements, you post should show what looks like the tables before the DML, and the results will be the content of the table changed after the DML.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

  • By creating a form that has several text boxes to a single character on the same line, how can I get the cursor to go in the next text box automatically after inserting a character?

    By creating a form that has several text boxes to a single character on the same line, how can I get the cursor to go in the next text box automatically after inserting a character?

    Create a text field and use the option 'comb n characters.

Maybe you are looking for

  • Problem with keyboard: some keys return two, not one, characters

    I have a MacBook Air 11 '' mid-2012 128 GB SSD model running OS X Yosemite 10.10.5 and my keyboard has developed a strange problem occultation key repeat.  Whenever you press the "3" button, the system generates thus simultaneously a '3' and '6 '.  T

  • Re: Qosmio F50 - where can I get drivers for Windows 7?

    Hello My University has a MSDNAA Microsoft's contract, allowing all students to benefit from free licenses of Windows, including Windows 7 Pro (32-bit and 64-bit). I had one since September 15, and Toshiba Europe has not yet posted any drivers for my

  • Satellite A30: Lack of recovery CD-&gt; how to install XP?

    Hello I have a second hand Satellite A30, without recovery cd. Windows XP crashed completely. How install xp family without a recovery cd, an OEM cd does not work with the code on the sticker of the series. TIA, bjorri

  • Program Microsoft Greetings Workshop

    I have a Windows greetings biomedical program that I bought in 1996.  I haven't used it for a short while and when I tried to use it today the message I get is 'I have problems with a database." I have reinstall the program, but has exactly the same

  • How can I set up SCAN TO EMAIL using GMAIL for 3520e Deskjet AIO?

    I have the gmail warning system installed for to send the links to open a Gmail composition window. I thought that would be enough. I watched the default parameters of the program, but that doesn't seem to apply, probably because I don't have an emai