How to move text with styles between the docs? [CS 5.5 + JS]

Here's what I have to get a document & insertion point reference:

  if (! app.selection[0] instanceof InsertionPoint) {
     alert("Your cursor must be a single insertion point! Try again.", "Insert single Word file");
      return;
 }
 var currDoc = app.documents[0];
 var importHere = currDoc.selection[0]

I have the systematic Cleanup job, can enter the text cleaned with

 cleanupFrame.paragraphs.itemByRange(startFrame.paragraphs[0], startFrame.paragraphs[-1]).select();
 app.copy();

But then, what? It should be simple enough to be invisible for me. I tried different things, but I have to need a boost.

TIA.

Use the Move() methods

Moving text (to: LocationOptions[, reference: varies])

Moves the text at the specified location.

Parameter Type Description
TO LocationOptions:
LocationOptions.BEFORE
LocationOptions.AFTER
LocationOptions.AT_END
LocationOptions.AT_BEGINNING
LocationOptions.UNKNOWN
The location relative to the object within the container object or reference.
Reference Cell
Column
PageItem
Line
History
Table
Text
The reference object. Note: Required when the parameter specifies before or after. Can accept: text, history, cell, row, column, Table or PageItem. (Optional)

Tags: InDesign

Similar Questions

  • New on this... How to move text with the contents of overflow to the new page?

    When the content in a text box is too big and must go beyond the next page, how can I do this? I can't so...

    Click on the small red + sign below to the right. Then click on the next page.

    If you hold the SHIFT key when you place the text it will sink to fill all the pages.

  • How to move folders with unique to the folder with mutiple photos

    I am moving files with simple images to folders with several pictures in order to organize and to eliminate unnecessary files. I want to catalog them by folder name vs (dates, tags, etc...) I tried different things but am afraid I might lose a few pictures of my parents who are now deceased. I tried to drag and drop files, but then again I'm afraid I might lose photos. Thanks for the ideas or anyones help.

    Hello

    Thanks for posting the request in the Microsoft Community.

    I suggest you to refer to the article and see if it helps:

    Copy and paste a file

    http://Windows.Microsoft.com/en-in/Windows7/copy-and-paste-a-file

    Move and copy files using drag and drop

    http://Windows.Microsoft.com/en-in/Windows7/move-and-copy-files-using-drag-and-drop

    If you copy and paste the files, you will not lose any data. If you are afraid to do so, you can create a folder and copy all the photos and records in that particular place. Later, you can try to copy the file from its original location to the desired folder. After the transfer of files successfully, you can delete the duplicate folder.

    Let us know if it helps.

  • Smartphones blackBerry how to move an application icon to the home screen

    How to move an application icon in the menu of the applications to the home screen.

    For example the browser icon?

    domdp wrote:

    ... I have the selected theme and I get 10 icons along the left side and bottom...

    ... I think I may be limited to 10 icons...

    Witch hunt... But in reality its limited to 9 icons in the theme of the profiles icon is still present. From this screen, press Menu to display the largest list of icons. ARange so the first 9 icons are the ones you want to see on the theme of the.

  • How to move Adobe Acorbat Professional 8to the latest version?

    How to move Adobe Acorbat Professional 8to the latest version?

    Hi haroldd98301156,

    Would like to inform you that it is not possible to upgrade from Acrobat Pro 8 (old version). You buy Acrobat Pro DC as full version.

    Kind regards

    Christian

  • How to add a character style in the active document

    Hi experts

    How to create a character style in the active document.

    How to make the script work.

    Thank you

    Respect of

    John

    var myCharacterStyle;

    myDocument var = app.activeDocument;

    var myCharacterStyle = myDocument.characterStyles.add({name:"c"});)

    myCharacterStyle.strikeThru = true;

    myCharacterStyle.strokeColor = 'Black ';

    myCharacterStyle.add)

    There is not much to say about your code. Only the last line would cause a problem. A possible hiccup is also on the fact that the style may already exist when you want to add.

    myDocument var = app.activeDocument;

    var myCharacterStyle = myDocument.characterStyles.item ('c');

    ! myCharacterStyle.isValid & myCharacterStyle = myDocument.characterStyles.add({name:"c"});)

    myCharacterStyle.strikeThru = true;

    myCharacterStyle.strokeColor = 'Black ';

  • Using CS4 Flach and action script 2.0 how to move a specific frame in the main timeline when a movie clip instance come at the end of his chronology?

    Using CS4 Flach and action script 2.0 how to move a specific frame in the main timeline when a movie clip instance come at the end of his chronology?

    code on the last frame of your movieclip instance:

    _root.gotoAndStop ('whatever_frame');  will work unless this swf is loaded into another swf.  in this case, you must use a relative path to the main timeline (for example, _parent or _parent._parent etc.).

  • How to create checkbox with HTML in the labels?

    How to create checkbox with HTML in the labels?
    If it is possible without the help of APEX_ITEM. BOX?

    Hello

    Yes you can do it. You just need to set * "Escape special characters" = No * in the area of 'Security' of the page box point you. But please be aware that this change could make your application vulnerable to XSS attacks in the case if users are allowed to enter data into the table that is used to fill the entries in the box.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to move text on the screen?

    I can type the text in the little boxes when place the text on the screen (not the titles developed - just place the text on the screen after hitting the "T" key).  The box is difficult to work, and I did not understand how simply MOVE it to a different area of the screen.  Is this possible?  I can't just click and drag it.  And why the cursor looks like this little arrow pointing to?  And why the box to keep changing shape on me, etc.. ?  Someone else has a lot of trouble with this?

    Here is a glance at the Titler Panel, with one selected area of text (visible Bounding Box) and ready to be moved. Pre 4.0 it's with but a few exceptions, will look the same.

    Hope that helps and good luck,

    Hunt

  • Control the vertical text with styles (or similar) rationale

    I'm on a 450-page document which is divided into 20 separate chapters. Each chapter is divided into sections and each section begins with a title that includes a page break. This means that some end of sections with a few paragraphs of text on a page is empty.

    Where pages are close to full text, I like to get the vertical justification to "justify" so that the leader/line spacing is adjusted to the top and bottom lines in uniform positions.

    Is it possible to do this automatically and without having to manually turn the parameter "align: top ' on pages without text? (and therefore, in which the setting seems ridiculous?)

    (I'm working to be able to make changes to the content of re-importation of text for future versions without having to manually change the settings on each image whenever, if there are major changes in the length of the text, etc.).

    Thanks if you can help!

    Here is a review of your options of native InDesign (which boil down to the use of the sequence and rotating Options on vertical Justification).

    Substances wrote a plugin "Proper vertical Justification" which is very nice. I've never used and am not connected with in - Tools.com (in addition to having purchased their products).

    (I'm working to be able to make changes to the content of re-importation of text for future versions without having to manually change the settings on each image whenever, if there are major changes in the length of the text, etc.).

    I deal with "major changes in the length of the text" on a daily basis, due to the expansion of text or compression in the translation. The best way to do it, in my experience, is to style all your text with an object Style frames and wisely use keep Options. At the very least, make two object Styles - one for 'body' of the text, and then one for 'last page' text alignment at the top. In this way, you can simply insert/delete pages in the middle of your chapter, and you will not need to access text block options at all.

  • How can I get more space between the components of a line of text... elegantly

    OK, I have a few equations that follow one another in a line of text, for example

    XC = 10 ^ 6/2 pi f C Xc = 10 ^ 6/2 * pi * 50 * C Xc = 10 ^ 4/pi C... etc.

    Is there a way I can put for example a css feature in paragraph so I can dimension of space as a box?

    I tried with a < span class = css box > < / span > but it includes only the statement text.

    And if I put < p > Xc = 10 ^ 6/2 pi f C < /p > < span class = "css" box > < / span > < p > etc.

    He puts the equations on different lines.

    And the multiple is a cludge, so invisible images. It MUST be a nice way to do this?

    You said you wanted to math I just assumed you wanted math resembling "math". The only reasonable ways to get that in all browsers are 1) do it with MathJax, which requires 1 JS page call or 2) do it with images. If you want math that looks to the mathematics of the HTML type, you can type in a plain text page or an email - like 10 ^ 6/2 * pi * 50 * C (which is a bit ambiguous, anyway, and not at all recognizable at a glance) - then type it like this and adds nonbreaking spaces for the distance between the mathematical expressions. If you want math that looks like math, then you should use the standard. The standard is HTML 5, and mathematics within the HTML 5 standard is MathML.

  • How to create a table with spaces between the lines...

    Hello

    I use jdev 11.1.1.6 and I need to insert spaces between the lines. How this can be done?

    Thank you and best regards,
    Tarun Agrawal

    Hello

    I'm sorry to forget on the spacer. You must use css like mentioned AP.

    Arun-

  • How to set up make-style for the text box in the apex.

    Hi all

    I created a text box in the apex and now I'm changing the font for that text box style and I applied here like this is this correct one or any suggestions on this.
    --
    HTML Form Element Attributes: style="font-family:Arial;font-style:Regular;
    The apparoach is the right one or not.
    {code}
    
    
    Thanks,
    Anoo..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    David wrote:

    I created a text box in the apex and now I'm changing the font for that text box style and I applied here like this is this correct one or any suggestions on this.

    --
    HTML Form Element Attributes: style="font-family:Arial;font-style:Regular;{code}
    The apparoach is the right one or not.
    

    N ° attribute is missing a quote from endpoint, and "Regular" is not a valid value for the http://reference.sitepoint.com/css/font-style">make style property.» Valid values are normal | italic | oblique as shown.

    Also, it is recommended to specify a default value of generic downturn at the end of the specifications of font family :
    {code}
    style = "do-family: Arial, Helvetica, without serif;" make-style: normal; »
    {code}
    (There's really no need to ask such questions icies and waste of time to wait for answers: to bookmark a good reference CSS like Sitepoint link above or the http://www.w3.org/TR/CSS21/#minitoc"> W3C CSS specification and refer to them as needed.")

  • How can I close a space between the lines?

    I typed a promissory note and have extra space between the lines.  How can I close this space?

    Hello

    Click on the "Line spacing" icon in the section 'Paragraph' of the 'Home' tab This icon is the fourth first in the default icon and has a high and arrow down to it.

    Click your setting spacing appropriate line in the list that appears.

    Change the default font size

    http://www.askdavetaylor.com/change_default_font_size_in_wordpad.html

    Windows XP Professional must have a copy of the Works word processor.  It is easier to work with.

    Start > type Works

    Select the word processor from the list

    If it does not, go to C:\\Program Microsoft Works

    Search for MSWorks

    Double-click the file to launch

    The icon looks like this in Windows Vista-

  • Recent update is causing a problem with style on the leaves of masters

    Hello

    I've just updated Muse and I have another question with a master style sheet font and paragraph styles.


    The homepage looks like which is as it should be.  It has its own master page

    Home should look like this.png

    The other pages of the site look like this (see below) - the school text logo has been lost, the two missing buttons and the footer text of page is now black and not white and also is not justified and not centered but this arises out of the same master page.

    The only page that keeps the styling is the homepage.

    I tried to remove the text and styles of text by default re-adding, change - the only option would be to remove the main master page which I do not if it can be helped.

    About Us - looks like this.png

    I had this problem with the last update, but got around it by changing the default text styles - but that does not work now.

    I have 20 + sites set up like that.  I don't want to put hours of work into the sorting issues if it can be helped.

    Any information relating to this issue would be helpful

    Thank you


    Simon

    Hi Simon,.

    Please try to turn off 'IBE' (aka of editing in the browser) in the Panel "Advanced" dialog "Properties of the Site" within the Muse and the re - publish and check if that corrects the problem, the cause is something that we are aware and working on a fix for.

    Kind regards

    _Ankush

Maybe you are looking for