(AS) Select the text of the paragraph without bringing out the carriage return

(AS) Select the text of the paragraph without bringing out the carriage return character.

I need help to select a paragraph in a story.
The selection does not contain a 'return' (ASCII number 13 ")

My current sample is as follows:
-example assumes that the insertion point is already placed in a specific paragraph.

Tell application "Adobe InDesign CS3"
activate
theDoc Set to the active document
say theDoc
Select the paragraph 1 of the selection
end tell--theDoc
end tell--app

Sounds simple... The example above to select my paragraph selected.

but he also chose the carriage return also. How would I go to do this?

Any advice would be helpful!

Thank you!

Try:

Select text in character-2 of paragraph 1 of the selection of character 1

Tags: InDesign

Similar Questions

  • Replace the carriage return or new line with a table space

    Hello

    I want to replace the carriage return or new line with space in my column of the database.

    To do this, I'm using this query:

    Select replace (replace (Comments, chr (10),' '), Chr (13),' ') OF Comments_Master

    Comments_Master is the name of the table and comments is column that contains carriage return or new line.

    But this query works as expected.

    Once I run this query and run the query again "select * FROM Comments_Master", transport return and new line still exist.

    Please let me know what is wrong with this query?

    You write that data back you? This example shows that your sql should work. I thinnk the query that you just described is the updated one below.

    create table blah (text varchar2 (100));

    insert into bla values (' it's multi)

    line of text ");"

    Select * from blah.

    Select replace (replace (text, chr (10),' '), Chr (13),' ') of bla.

    Update text bla = replace (replace (text, chr (10),' '), Chr (13),' ');

    Select * from blah.

  • Remove the carriage returns

    I'm trying to import a 8 column .csv file into my database column 7A unfortunately a carriage return at the end that causes CF raise error, 'Incorrect number of columns.

    How can I get rid of the carriage returns when importing?

    I suppose that, by using the parameter "name" you try to treat the file as a query. That's why you get the error. You might be better to try to treat it as a block of text.

    Get rid of the name and the content of the file will be in the CFHTTP variable. FileContent. You will need to develop a function to browse the file and analyze the content. Each record has a CR in column 7, for example, could you retrieve each record by searching every second CR. Then you treat as a list delimited by commas.

  • CFFILE READ xml file removes the carriage returns

    When I use CFFILE to READ a XML file (in order to get to the XMLPARSE step), it deletes all the outside between the carriage returns.

    My simple order of action CFFILE = 'read' file variable = "" #tempFile # "="XMLData"results, of course, in the XMLDATA variable." When I've got CFOUTPUT this value, all the transport returns have disappeared.

    In the original raw XML file, there is a section as such:

    < inspection_comment comment_type = '0' > missing tag.

    Channelled to the rear. d < / inspection_comment >

    In other words, there are in fact two combinations of chr (13) chr (10).  Yet, after the CFFILE READING, I find myself with

    Missing tag. Channelled to the rear. (d)

    and no carriage returns whatsoever.   It is a natural phenomenon, because it is an XML file, or I just don't hold my tongue right?

    Thank you!  RLS

    Carriage returns are not visible in html. Make sure that you use

    balises ou quelque chose de similaire.

  • Remove the carriage returns in the text in an oracle SQL table column

    Hello

    Someone knows how to remove carriage returns in a text column in an Oracle table
    using SQL. So far, I have:

    Replace (text_field, Chr (13),' ')


    but this is ignored.

    (We use db 10g (enterprise Edition Release 10.2.0.4.0) and SQL * more 10.2.0.1.0)

    I would be very grateful for any help.

    -Mark

    How does the following:

    UPDATE table_name SET col_name = REPLACE (col_name, Chr (13), ");

    But if your new line is CR + LF, then use REPLACE (col_name, Chr (13) + Chr (10), ")

  • find sql_id using the sql statement, including the carriage return and tab...

    Hello. all.

    I wonder how to find sql_id using a sql statement, including transport retrun and tab space multiple.
    To be more precise,

    My sql is:

    Select
    col_a,
    col_b,
    ..
    ..

    I usually use the following query to find the sql_id

    Select sql_id in v$ sql where sql_text like 'MY SQL STATEMENT %.

    When MY SQL STATEMENT includes carriage return and tab space multiple, how can I do?

    Thanks in advance.
    Best regards.

    Hello

    Did you look at regular expressions? Use regexp_like instead of as.

    http://www.Stanford.edu/dept/ITSS/docs/Oracle/10G/server.101/b10759/conditions018.htm

    Kind regards

  • Ability to add the carriage return character

    Hi all

    I have to add the characters return at the end of each paragraph.  I found insertTextAsContent (using: {String |}) SpecialCharacters} ( position: XMLElementPosition), but do not know how to use this function. I think that in this method only accepts the position as an XML element.

    How to use this feature to accomplish my task?

    Use: InDesign CS4/Javascript/Windows.

    Kind regards

    Karpanai

    you could do: string = "\r";

    \r is a carriage return, and \n is a newline

  • replace the carriage return, displaying the output on a single line

    [oracle@ccoshs02xvdbs01 ~] $ sqlplus deploy_ctl/deploy_ctl

    SQL * more: Production version 11.2.0.1.0 on Mon Mar 28 10:21:05 2011

    Copyright (c) 1982, 2009, Oracle. All rights reserved.


    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options


    Modified session.

    10:21:05 SQL > insert into test (b) values ("this is stop
    10:21:38 2 space are now ');

    1 line of creation.

    10:21:47 SQL > commit;

    Validation complete.

    10:21:49 SQL > select test b where b as "this % ';

    B
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    It is stop
    space wear now


    10:22:07 SQL > select replace (b, chr (13)) of the test where b as "this % ';

    REPLACE (B, CHR (13))
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    It is stop
    space wear now


    10:22:56 SQL > select replace (b, chr (13), chr (32)) test fix where b as "this % ';

    DIFFICULTY
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    It is stop
    space wear now


    10:24:19 SQL >


    I would lilke to display on the same line.

    Thank you.

    Hello

    SQL> select translate(b,chr(13)||chr(10),chr(32)) fix from test where b like 'this%';
    
    FIX
    ----------------------------------------------------------------------------------------------------
    this is stopspace now carry on
    
    SQL> select translate(b,chr(13)||chr(10),' ') fix from test where b like 'this%';
    
    FIX
    ----------------------------------------------------------------------------------------------------
    this is stopspace now carry on
    

    -Pavan Kumar N

  • It is possible to select a column of text tabbed without selecting the adjacent column of the tabulated text?

    I have two columns of text created with tabs. I want to select the first column without selecting the second column (I want to format the first column differently). Hope it would be possible to drag a marquee on it and have it select but apparently not. Will do it line by line, but for later use, would like to know if there is a way.

    David

    Creates the tabbed table text would allow you to do. It will give you much more control over the formatting as well.

    To change the text tabs in a table, select the text with tabs and choose table > convert text to table.

  • How can I prevent Pages 5.6.1 selecting the invisible when I change the text in bold, italic, etc. on a new line

    This is starting to annoy me a lot and I have not found something online that will solve this problem.

    Let's say I'm editing a file.

    Now I say "Oh, I need to put a"BOLD"two lines after the second 'Cogito ergo sum'"- so I go to this line and press Cmd + B (shortcut for "BOLD") and in this case:


    He selects the invisible! Now, let's say I write about it

    It disables the "BOLD"! What is the point of this? This makes me press the shortcut and then I have to press the arrow to the left. That you understand it's frustrating because it's a waste of 4 seconds, every time I want to change the style of the last line. And for someone who publishes an entire document, it is VERY frustrating.

    Can someone help me?
    I hope it's a clear description of the problem

    When you use the attribute text keyboard shortcuts, it's a good idea to show invisible, so that you know where click to place your insertion point - before selecting the keyboard shortcut. If you want to use these shortcuts, you must adapt to the way in which the Pages to do things and not try to make it work like MS Word.

    When you select the paragraph marks, the following keystrokes will remove them, right as well as your sense of humor.

  • Select the line of contour based on static text

    Hello

    Thank you much in advance.

    As I'm fairly new to AppleScript, I don't know what is and what is not possible. My goal is to have a single script that works for 7 of our branches and about 1,500 people. The idea for the script is:

    1. ask the user some basic questions (like "which office are you?" and "What is your code print?" - already scripted.)

    2 something here to select the appropriate section of the code required for these specific functions. In other words, if user pics office 1 go to any section of the code that corresponds to the office 1 if 2 go 2, etc. - not scripted, I'm used to something like goto, but if I understand well there is no such thing with ACE

    3. based on the information in the point 1, if possible, download a file from the internet (a package) and install it. I guess I should wait or pop to draw their attention to the fact that they would need their password and wait they ended as a dialog box. I know that the password is not scriptable. - not scripted

    4. a procedure (for each location but very similar) script:

    4.1 find if printers have been installed (based on the content of the Printers & Scanners window and printer names). - ongoing

    4.1.1. If so, select and remove.

    4.1.2 if not, continue

    4.2 install printers for this office. - scripted.

    4.3. implement their code printing with a couple of presets - scripted

    Where I am stuck currently is:

    1 choice of the line of the scroll printers area contour & Scanners based on the name of the printer. I try this, but it does not work (for some reason any CRUDE HTML does not work):

    Tell application "System events" tell process select 'System Preferences' (first line of end of plan 1 zone 1 scroll the window 1, including the value of static text 2 is "SAvin_372BC" tell end tell

    Accessibility Inspector is telling me this:

    AXApplication > AXWindow:AXStandardWindow > AXScrollArea > AXOutline > AXRow:AXOutlineRo w > AXCell > AXStaticText for the text where the Savin_372BC is displayed. I found this and tried to do something similar to script, but obviously I did not. As I do not know how many printers user will have I need for AS through, find those that we install and remove them if they are present and move along, otherwise - move along.

    2. how script logic? As I mentioned previously, I'm used to goto, so it would be to ignore whatever the section, I need to continue from. What would be the AS version for goto?

    3. using the script and without install anything that anyone else who isn't Apple, how do I download a pkg in / downloads? CURL?

    4. I'm not there yet, but no matter what magic trick as waiting for an entry for the Mac password?

    Thanks a lot again!

    I'm used to something like goto, but if I understand well there is no such thing with ACE

    The man.  GoTo went in disgrace for 40 years!  No modern language has goto. GoTo lead unrestricted branching which resulted in convoluted code.  A fluidity in the code is desirable.

    From this page:

    http://computers.tutsplus.com/tutorials/if-and-if-else-AppleScript-conditional-s statements - mac-45590

    ------------------------------------- AppleScript

    Learn AppleScript: The comprehensive Guide to Scripting and automation on Mac OS X, the book of the third edition

    AppleScript Language Guide pdf Download pdf file

    Intro to applescript with the sending of an email
    http://Mac.AppStorm.NET/how-to/AppleScript/the-ultimate-beginners-guide-to-Apple script.

  • SELECTION OF TEXT WITH THE TOUCH PAD AND WINDOWS 8

    Why can't I select text by using a tablet with Windows 8?  I can double-tap to select a Word and triple tap to select the paragraph, but it seems no possible select a sentence or phrase.  What I am doing wrong?

    Hi Doug,.

    Thanks for posting in the Microsoft community.

    Doug, I understand that you are unable to select a sentence or phrase using the touchscreen feature.

    To select a sentence or phrase, you must press on the left of the sentence and drag your fingers through.

    For more information, see the link:

    Contact: call, tap and beyond

    http://Windows.Microsoft.com/en-us/Windows-8/touch-swipe-tap-beyond

    Let us know if you need more help.

  • Cannot select the text above or below the highlighted area in adobe reader DC

    He is an annoying problem that I face every day.

    When I highlight text on 2 consecutive lines (yellow), I won't be able to select or to do something with the area in the red zone. When I click on these areas in the red zone, it will select the highlights. Let's say, I want to emphasize the word "independently", this task will be much harder with this bug.

    However, the area in the green zone works without any problem.

    See my sample file here

    https://DL.dropboxusercontent.com/u/11120457/tmp/sampleFile.PDF

    I hope someone will fix it soon.

    I found a solution. Just go to adobe reader xii.

    It seems that the DC team does not want to settle.

  • Select the text to which an anchoredobject is attached

    Hello

    I have a couple of linked text frames, attached within the paragraph in another frame and I need to retrieve the paragraphs, but I don't see a way to do it.

    I already select managers of related texts (and do something with them), but no matter what I try, I can't connected paragraph.

    Is it possible to do this?

    Let's say that you have chosen the anchor, then get the first paragraph into the anchor text block:

    App.Selection [0] .textFrames [0] .paragraphs [0];

    Now let's say you select a paragraph of text inside an anchored object. To get the paragraph that contains the anchored frame:

    App.Selection [0] .parentTextFrames [0].parent.paragraphs [0]

    HTH,

    Ariel

  • Photoshop 2015: BUG? Layers panel auto-fait scroll to top when you select the text element with the text, creation/copy of layer tool and other actions

    This is a bug or a really bad and frustrating idea for a story.

    (1) in the layers panel, select a text layer, it highlights

    2) change to the text tool

    3) click on the text element in the workspace

    OR

    (1) select a layer in the layers panel

    (2) Ctrl-J, new layer by copying

    EXPECTED: Panel layers rest in the same position

    REAL: Panel layers scrolls the element selected or new layer to the top of the Panel. BORING.

    I do not need or want Photoshop to make decisions for me, space to work around to move without asking, or generally to spoil my flow!

    Please fix this or give me an option to turn it off as soon as POSSIBLE.

    autoscroll-problem.png

    You have successfully updated to 2015.0.1?

    The bug known as in the original message has been fixed in this version.

Maybe you are looking for