Cutting and Pasting Formatted Text

I have a script that searches for text with an outline color, removes the outlnie color, cuts it from the main "body" text, adds an anchored frame, applied an object style to that frame and pastes the cut text in the frame.
Everything works great except that it is REALLLLLLYYYY SSSSSLLLLLOOOOOWWWWW.....
I'm wondering two things. 1, is there a way to cut text without havnig to select it first (which seems to be a slow point) and keep any current formatting, and 2, is there a way to get InDesign to stop jumping to the page on which the cutting is occurring? It looks like InD scrolls the pages when the cut occurs.
My code looks roughly like this (VBA, InD CS3).
I define the text area so search
          Set SChar = InD.Selection(1).ParentStory.Characters(InD.Selection(1).InsertionPoints(-1).Index)
          Set EChar = InD.Selection(1).ParentStory.Characters(-1)
          Set SrchTxt = InD.Selection(1).ParentStory.Texts.ItemByRange(SChar, EChar)
Set up my search stuff here...
Then execute the search as such:
          Set Foundd = SrchTxt(1).FindText
I thought about using something like Foundd(i).cut or trying to simply set the text of the new frame to the text of the old frame but didn't see a way to do that and keep any potential formatting.

WOW! Between not having to select the item and InD no longer scrolling through the pages I'm getting at least double the speed! Never thought of the move function in relation to text.
Thanks much!
Now maybe the only other thing that might get a little more speed is adding the frame at the initial size I need rather than adding it then resizing it. Any thoughts on that would also be greatly appreciated.
Thanks again!
Ken

Similar Messages

  • Cut and paste wrong text!

    Adobe Cut and paste wrong text!
    A simple cut and paste a street address from a rebate PDF
    When I go to paste the address in notepad, the street address is COMPLETELY DIFFERENT! 
    I right click on the text there is NO hyperlink.  The address is valid, just another branch office. 
    how is this possible? 
    I can not trust cut and paste from Adobe!

    Shared Files - Acrobat.com
    On the right hand side of page 1
    Mail to:
    Florida City Gas Rebates Offer
    xxxxxxx
    xxxxxx
    xxxxxx
    Carefully note what it says on the screen  (El Paso TX)
    NOW cut and paste it into word, notepad
    it changes the address to CA!

  • Cut and paste from text field not working in early access JRE 1.90-ea-b38

    I noticed that cut and paste no longer works with JRE 1.9 on Windows 7 professional. Anyone else having that problem?
    I haven't posted a bug reports since the Sun days, is there still a place to post bugs?

    Which advice didn't I follow?1) How to write a simple SSCCE.
    Again why do you have a custom TableModel? It is not required for the SSCCE and in fact is not required for your real program.
    Why is KeyListener code included. It has notthing to do with your question.
    2) I also suggested you add the mouse listener to the text area. Well, the text area is defined in the popup dialog, not the editor in my original SSCCE. So why have you made the code so complex by defining a second text area?
    I did look at your sample program (the table with pop-up menu appearing on right-click) That was only a wild guess because you didn't respond the second time when I asked you why the mouse listener wasn't added to the text area.

  • BUG: Can't cut and paste custom text boxes

    So this is really annoying.
    - Create a text box.
    - Set a custom text color, font and size
    - Postion correctly.
    Now I want to copy the text box to another page to maintain my text style. I can copy, but when I paste nothing happens.
    Meaning I have to format each and every text box I create manually. Any work arounds?
    I must say I do find the book editing tools in Aperture eccentric to say the least. No multi-select, no align/distribute etc. - I hope for some better page layout tools in the future. They don't have to be complex - just the basics.

    Eccentric? Yup, my feelings exactly. Copy and paste in Aperture's layout tool is hit and miss - and as far as I know it's the only Mac app that behaves in this way, which is very strange indeed.
    I just tried a workaround by saving the page with custom text as a new page master: it doesn't work!
    Aperture only saves where the text box is located but all text formating reverts back to the theme's default... There's also no way to save custom text styles.
    What will work is duplicating the page that contains the styled text box you'd like to keep. But then you need to change all the rest of the layout around it manually, which may take even longer.
    It's nice to have a layout tool in Aperture. But considering what Apple has at its disposal, the implementation is extremely frustrating...

  • I can't copy and paste formatted text within the same or between Word and Excel documents

    I run Microsoft Office Professional Plus 2010 (English) (Student Select)
    when I try to copy any formatted text or tables within the same or different Word documents I will always loose the formatting. This is also true if I try to copy formats or formatted tables within Excel or from Excel to Word, see example screenshot:
    When I have a look at my paste options via 'Alt', 'e', 's' or 'Paste special' it only lets me choose between "Unformatted Text" or "Unformatted Unicode Text", see screenshot:
    Here is what I tried already:
    - In the advance options menu all options are on "keep formatting"
    - I uninstalled and reinstalled the entire office suit but keep having the same problem!
    Any ideas?
    Thanks in advance,
    Boston

    I found the solution on another site, superuser.com, so I can't claim the solution as my own, but it worked for me. Kent Ng says: 
    I face the similar issue with Excel 2003. If you have installed Skype-Click-to-Call, just removed it to resolve this issue.

  • I have just uploaded Firefox. How do I cut and paste from text on a web page?

    If I visit a site I often need to copy a section of text - but I don't see the icon on your toolbar.

    You may use keyboard shortcuts, which in windows are '''Ctlr + C''' then '''Ctrl +V''' the shortcuts will usually work in pages seen in Firefox, and often on other pages also.
    If you wish you may customise/customize the toolbar to add specific items, right click any blank area on a toolbar and choose the customise option, then drag the items off the dialogue Window to the required position.
    * see [[how do I customize the toolbars?]]

  • Configuration setting that needs to be changed to allow flexibility copy and to paste formatted text

    what is the configuration setting in Contribute that needs to be changed to allow me flexibility copy and to paste formatted text?
    Example I am unable to copy and paste formatted text within contribute and the line that is represented under the heading below
    Research Analysis
    This is the  research and analysis page. The most recent analysis for all companies listed on the

    I'm not familiar with 'styled text'- which does not mean much other than it's on a very long list of things I don't know. But I do know you can cut several steps out here:
    If your script works so far then you can clean it up:
    tell application "FileMaker Developer"
    open "MacintoshHD:Users:stuart:Desktop:Practice.fp7"
    set mytext to record 2 of table 1 of database 1 as styled text
    end tell
    tell application "Microsoft Word"
    activate
    set myRange to create range active document start 0 end 0
    insert text (mytext) at myRange
    end tell
    Also try:
    set mytext to contents of record 2 of table 1 of database 1 as styled text
    Reese

  • Cannot cut and paste text completely in Pages

    I tried cutting and pasting some text from Safari--about 9 pages worth of text--to Pages, but it only pasted 2 pages. Is this a Snow Leopard problem? Or should I consider installing Word now?

    Have you tried any alternatives at all to really determine the problem, whatever it may be?
    Like pasting it into another program such as *TextEdit, Bean or iTextExpress* ?
    iTextExpress for a start gives you a pageless mode where there are no page margins to cut off extra wide content.
    Have you checked if the text has not popped somewhere, but actually is in Pages?
    Have you noticed at what point the text has broken off and if there is any special about that?
    Have you tried pasting it into a demo of Word to see if it actually is a solution?
    The Mac universe does extend beyond Pages and Word:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=47&mforum=iworktipsn trick
    Peter

  • How do you cut and paste text from Adobe Reader 11 into Word?

    Using Windows 8.1.  Recently purchased Adobe Reader 11.  Need to cut and paste text from PDF into Word docs.  Docs are not locked and content should be available for editing.  Have figured out how to highlight the text through the Comment tools, but nothing (right-clicking, going to Edit pulldown) menu gives me a Copy option.  How do I cut and paste the text?

    Good to know that I got what I paid for with the Export PDF.I just went
    into the document that I am trying to cut and paste from and highlighted a
    piece of text.  Clicked right, checked the Edit pulldown, and then did
    Ctrl+C (assuming you meant Ctrl and then C, rather than holding them both
    down together).  Still no Copy option anywhere.
    Properties for the document I am trying to work with do say "Content
    Copying: Allowed" under Security. Since I can highlight text, I assumed
    that the text is there (not a photo scan) so that I can copy it.  Should I
    look somewhere else under properties to confirm this?
    As I did last night, I also opened up a document that I have cut and pasted
    extensively from before-so I know the text is there and manipulable.
    Attempted to cut and paste from it, using the same methods above.  Again,
    no option to copy with any of them.
    Perhaps I should clarify that by cut-and-paste, I do mean that I want to
    copy the text from the original and then transfer it to a Word doc that I
    am writing.  I am not trying to do anything with the original other than
    copy from it--not cutting anything out of the document itself.
    Is there a way to do this with the Adobe 11 reader.  At this point, I am
    wondering if I need to uninstall Adobe 11 and try to go back to Adobe 10 or
    whatever the reader was that was installed on my computer when I bought it
    (Dell Inspiron touch-screen laptop purchased in May 2013, if that gives any
    idea of which reader might have been installed there.  That version did,
    however, have some other limitations that made me want to get Adobe 11. Any
    ideas about what to do now.
    M. Christian Green, JD/PhD
    Senior Fellow, Center for the Study of Law and Religion
    http://cslr.law.emory.edu/people/person/name/green
    Book Review Editor, Journal of Law and Religion
    http://cslr.law.emory.edu/publications-lectures/journal-of-law-and-religion/
    Website
    http://mchristiangreen.com
    LinkedIn
    http://www.linkedin.com/in/mchristiangreen
    Twitter
    http://twitter.com/mchristiangreen
    On Sun, Nov 16, 2014 at 3:00 AM, Gilad D (try67) <[email protected]>

  • Cut and Paste text on a Flex App

    Is there any way to cut and paste multiple value at a time
    from a Flex App? we have a summary screen which has various text
    elements together to give a label/status value. The user can cut
    and paste one text at a time, but they can't select all text on
    that screen and cut/paste everything. Any ideas?

    Perhaps you could build a copy to clipboard link that strings
    together all of the pieces and pastes the text to the clipboard?
    There is an example on the Flex Style Explorer
    Export All CSS (lower left of the screen)
    http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html

  • Cut and Paste Text From My Browser

    Hello,
    I would like to cut and paste certain text or images from web pages....can I do this?
    Thanks,
    VeePee
    Nokia 3395
    Nokia 6600
    Nokia N95 8GB
    Nokia N8 (Anna)
    Nokia Lumia 930
    Solved!
    Go to Solution.

    Can I make Opera my default browser?
    Nokia 3395
    Nokia 6600
    Nokia N95 8GB
    Nokia N8 (Anna)
    Nokia Lumia 930

  • Copy and Paste Unformatted Text to documents

    A very useful feature at times is the ability to copy and paste formatted text from pages (in this case webpage) to a document (text edit, word). Which means that what ever bold, font or style on a page is copied to the clipboard and then pasted identically to the document.
    question:
    Is there a way to copy or paste the plain text of the clipboard rather than the formatted version?
    thanks..

    Hi, SU.
    Many applications support this, but how it is implemented varies by application.
    In many apps, if you paste using the Command-Option-V keyboard shortcut (instead of Command-V for paste), it will paste the clipboard contents either:
    • Without the styles used in the document from which the text was copied.
    • In the same style as the document into which you are pasting the text.
    Some apps, e.g. Microsoft Office, have an Edit > Paste Special menu choice that permits one to select that text should be pasted either without the styles or matching the style of your document.
    In Mail, the keyboard shortcut is Command-Option-Shift-V.
    Consult the Help for the particular application to determine how one can paste what is commonly called "styled text" without the styles. Styled text is text in the clipboard that retains the style of the document from which it was copied.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Cut and paste problem in an applet :(

    Hi All,
    I have developed an applet based GUI and now I wanted to cut and paste some text from an external application say from a notepad(Windows) to a
    JTextfield in the applet. I tried to do it on a applet but it was not allowing me to do it. I was able to do the same(cut and paste) on a textfield when run as an application. So does the cut and paste operation has anything to do with the sandbox security provided by an applet model?. This sounds bit crazy or maybe Im missing something here. Would appreciate help on this.
    Thanks a ton!
    Thanks,
    Ram

    You can always use CTRL-C and CTRL-V to copy/paste, but if you want to right-click, you have to implement it yourself.. Here's MY implementation, if even has 'Undo'!
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    public class CTPopupMenuMouseListener extends MouseAdapter
           private JPopupMenu popup = new JPopupMenu();
           private JMenuItem undoItem, cutItem, copyItem, pasteItem, deleteItem, selectAllItem;
           private JTextComponent textComponent;
           String savedstring="";
           String lastactionselected="";
           public CTPopupMenuMouseListener()
                  Action action = new AbstractAction("Undo")
                    public void actionPerformed(ActionEvent ae) {
                         if(lastactionselected.compareTo("")!=0){
                             textComponent.setText("");
                             textComponent.replaceSelection(savedstring);
                  undoItem = popup.add(action);
                  undoItem.setMnemonic('t');
                  popup.addSeparator();
                  action = new AbstractAction("Cut")
                    public void actionPerformed(ActionEvent ae) {
                          lastactionselected="c";
                          savedstring=textComponent.getText();
                          textComponent.cut();
                  cutItem = popup.add(action);
                  cutItem.setMnemonic('t');
                  action = new AbstractAction("Copy")
                    public void actionPerformed(ActionEvent ae) {
                          lastactionselected="";
                          textComponent.copy();
                  copyItem = popup.add(action);
                  copyItem.setMnemonic('c');
                  action = new AbstractAction("Paste")
                    public void actionPerformed(ActionEvent ae) {
                          lastactionselected="p";
                          savedstring=textComponent.getText();
                          System.out.println("in paste code savedstring is: "+savedstring);
                          textComponent.paste();
                  pasteItem = popup.add(action);
                  pasteItem.setMnemonic('p');
                  action = new AbstractAction("Delete")
                    public void actionPerformed(ActionEvent ae) {
                          lastactionselected="d";
                          savedstring=textComponent.getText();
                          textComponent.replaceSelection("");
                  deleteItem = popup.add(action);
                  deleteItem.setMnemonic('d');
                  popup.addSeparator();
                  action = new AbstractAction("Select All")
                     public void actionPerformed(ActionEvent ae) {
                          lastactionselected="s";
                          savedstring=textComponent.getText();
                          textComponent.selectAll();
                  selectAllItem = popup.add(action);
                  selectAllItem.setMnemonic('a');
            public void mouseClicked(MouseEvent e)
                  if (e.getModifiers()==InputEvent.BUTTON3_MASK)
                         if (!(e.getSource() instanceof JTextComponent))
                               return;
                         textComponent = (JTextComponent)e.getSource();
                         textComponent.requestFocus();
                         boolean enabled = textComponent.isEnabled();
                         boolean editable = textComponent.isEditable();
                         boolean nonempty = !(textComponent.getText()==null || textComponent.getText().equals(""));
                         boolean marked = textComponent.getSelectedText()!=null;
                         boolean pasteAvailable = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null)
                                    .isDataFlavorSupported(DataFlavor.stringFlavor);
                         undoItem.setEnabled(enabled && editable);
                         cutItem.setEnabled(enabled && editable && marked);
                         copyItem.setEnabled(enabled && marked);
                         pasteItem.setEnabled(enabled && editable && pasteAvailable);
                         deleteItem.setEnabled(enabled && editable && marked);
                         selectAllItem.setEnabled(enabled && nonempty);
                        int nx=e.getX();
                        if (nx>500)
                            nx=nx-popup.getSize().width;
                         popup.show(e.getComponent(),nx, e.getY()-popup.getSize().height);
                  }else if ( e.getClickCount()==2 )
                        CTmainFrame.JTextArea1.setText("");
      }

  • Quick way to format text cut and pasted from a web browser into Pages?

    I work a lot by cutting and pasting text from web browsers into my word processor.
    When I was using Word, I had built a very useful macro that allowed me to re-format the font, font size, colour, line spacing etc, as well as to remove hyperlinks, all by pressing one keyboard shortcut.
    Is this possible in Pages? I've tried Paste and Match Style, and Paste Paragraph Style, but they only seem to solve half the problems.
    Surely this must be a common problem? I've had a look in the discussion forums, but can't find anything...

    arthur,
    I'm not having any trouble deleting links. Click on View > Show Invisibles. If there's a space following the link, put your cursor to the right side of the space, click, then drag to the left so that you highlight the link. Then just hit delete.
    Or, if you want to have a web or email address in your copy without it being a live link, highlight it, then click on the Link inspector > Hyperlink button > and UNcheck +Enable As Hyperlink+.
    -Dennis

  • How to cut and paste subtitles (with formatting)?

    In iMovie '09, once I've formatted a subtitle to look the way I want, how can I repeatedly cut and paste that subtitle so that I don't need to redo the formatting for every subsequent subtitle?
    I realize this is probably trivial once you see it ... but it's not obvious to me. Couldn't find it in Help or in Apple's FindOutHow movie.

    Copying, Cutting, and Pasting in OS X
    You can easily copy, cut, or paste pictures, text, and other items easily using the built-in shortcuts and menus in OS X.
    Copying text
    To copy text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
    To copy using secondary-click, first secondary-click the text. Then, select the Copy button from the pop-up menu.
    To copy using the keyboard shortcut, select the text. Then, press both the C and Command (⌘) keys at the same time.
    Cutting text
    To cut text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
    To cut using secondary-click, first secondary-click the text. Then, select the Cut button from the pop-up menu.
    To cut using the keyboard shortcut, select the text. Then, press both the X and Command (⌘) keys at the same time.
    Pasting text
    To paste text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
    To paste using secondary-click, first secondary-click the text. Then, select the Paste button from the pop-up menu.
    To paste using the keyboard shortcut, select the text. Then, press both the V and Command (⌘) keys at the same time.
    Austin

Maybe you are looking for