AS CS3 - how to paste then select pasted text

Would love help with this:
Part of my script will paste text. After pasting, I would like the script to then select the pasted text (so that it can proceed to apply a style sheet).
How can I specify such a selection?
Thanks.

Hi Shayne, thanks for responding.
The larger goal for the script is to execute a kind of "paste without formatting" that preserves local formatting/overrides (itlas, bolds, character styles). The native feature does not support this.
A designer will have live text, say, on the pasteboard, will copy the live text, then select a destination. The destination contains dummy text, formatted with the desired attributes. The live text needs to pick up the attributes and replace the dummy text, preserving overrides.
The script creates a temporary style sheet capturing the destination attributes, pastes (which replaces the dummy text, putting the live text into position), applies the style sheet (giving the attributes but retaining overrides), then delete the temporary style. Of course as you're pointing out, the style sheet could be applied before pasting.
If I'm thinking about this correctly, the problem is that the source text could have multiple paragraphs. Setting the insertion point with the desired attributes would take care of the first paragraph, but not the subsequent ones.
any ideas?
Meanwhile, if you can find an easy way to do this without copy/paste. . . that would be fantastic!

Similar Messages

  • How to drag a selection of text in RichTextEditor ?

    I don't know if there is any way to drag a selection of text ? I struggle with this for one day now . I want to let the user drag their text selection to a datagrid or canvas , but when I select a part of text ,the sencod time I trigger mousedown event the selection disappeared .
    I don't if text layout framework can do this ,but Adobe's Buzzword does support text drag feature . If anyone who can tell me how to do this , I will be very appreciated.

    please . Anyone know how to accomplish this ?

  • In PS CS3 how to flip a selection horizontally

    I have an image that needs one of its elements flipped horizontally.  I made my selection and moved it to it's own layer via cmd-shift-j.  Then, with this new layer selected, I expected to be able to flip it independently but the entire image flips with it.  What am I doing wrong?

    Wade's got it right.
    You need to use the Edit menu... not the Image menu.
    One will do the selection, the other does the whole picture.

  • CS3 takes 10 mins to select some text.

    OK today dreamweaver started acting crazy, as soon as I open
    a file to work on, it freaks out. To do anything (select text,
    change file, click anything) the hour glass hand pops up and it
    takes a few minutes before it registers. EVERYTIME though, its
    getting really annoying. (I think this happened to me a year ago
    and I had to delete a corrupt preferences file or something? I
    really don't remember) Does anyone have a clue whats happening?
    Thanks.

    These may help:
    http://groups.google.com/group/macromedia.dreamweaver/browse_thread/thread/9a19d57c33d3ce1 1/a29150047aaa72f8?lnk=gst&q=CS3+will+not+load#a29150047aaa72f8
    Or this technote may also help:
    How to re-create the Dreamweaver user configuration folder
    (CS3 on Windows
    XP, Vista)
    http://www.adobe.com/go/kb401118
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    CSS Tutorials for Dreamweaver |
    http://www.adobe.com/devnet/dreamweaver/css.html
    http://twitter.com/nadiap
    "john isaacks" <[email protected]> wrote in
    message
    news:gptshi$3of$[email protected]..
    > OK today dreamweaver started acting crazy, as soon as I
    open a file to work on,
    > it freaks out. To do anything (select text, change file,
    click anything) the
    > hour glass hand pops up and it takes a few minutes
    before it registers.
    > EVERYTIME though, its getting really annoying. (I think
    this happened to me a
    > year ago and I had to delete a corrupt preferences file
    or something? I really
    > don't remember) Does anyone have a clue whats happening?
    >
    > Thanks.
    >

  • InDesign CS3: How do i add a new text frame to an existing threaded story?

    I have a table that is much too large to be in an existing story (my document is currently formatted in 2 columns, but the table that I need to insert needs to span across an entire page) so I had to create a separate text frame for it. What I need to do is break the text thread and reroute the story so that the table is included. Is there a way to do this?

    With the selection tool click the outport of the frame you want before the table, then the inport of the frame that should have the table, then the outport of that frame and the inport of the one that should follow.
    You'll need to put the table into a separate paragraph, and that paragraph should be set to start in a new frame, as should the one that follows (you can also accomplish the frame transitions by inserting frame breaks).
    Peter

  • ALV Classic - How to extract the selection long text of TYPE LVC_T_FCAT?

    DATA: e_dyntab_tb  TYPE lvc_t_fcat,
              e_dyntab_wa TYPE lvc_s_fcat,
              t_line_reftab   TYPE REF   TO data.
    *Populate ALV fiels of TYPE LVC_T_FCAT
    MOVE: c_matnr      TO e_dyntab_wa-fieldname.
    MOVE: c_material   TO e_dyntab_wa-scrtext_l.
    APPEND e_dyntab_wa TO e_dyntab_tb.
    LOOP AT t_hwk_date ASSIGNING <fs_hwk_date>. "t_hwk_date is DYNAMIC
        CONCATENATE c_hwk <fs_hwk_date>-index           INTO  e_dyntab_wa-fieldname.
        CONCATENATE c_hwk <fs_hwk_date>-calender_wk INTO  e_dyntab_wa-scrtext_l.
        APPEND e_dyntab_wa TO e_dyntab_tb.
    ENDLOOP.
    *Create dynamic itab from dynamic ALV output
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = e_dyntab_tb          "Pass alv_fcat here
        IMPORTING
          ep_table        = i_reftab.
    * Create Dynamic Work Area and assign to FS
    ASSIGN i_reftab->* TO <fs_final_itab>.      "Assigning the Final Table,
    CREATE DATA t_line_reftab LIKE LINE OF <fs_final_itab>.
      ASSIGN t_line_reftab->* TO <fs_line_reftab>.  "Create a Work Area
    QUESTION:
    e_dyntab_wa-fieldname   = this is the fieldname / column heading for the dynamic internal table
    e_dyntab_tb-scrtext_l     = this "should" be the 1st row(Column Heading Title) for the dynamic itab
                                        = this data will be used for MS Excel Functionality as always as the first row as
                                           column heading in the MS Excel
    Legend:
    How can I extract the entries of e_dyntab_tb-scrtext_l to an internal table containing the same structure of <fs_line_reftab>?

    Maybe I missed something, but you already have the long text for the columns in your FCAT structure.  The problem you will have is that you will NOT be able to place those fields in the table that you have created because the headings will always be text and the columns may or may not be text (i.e. placing a heading into a numeric).  You will be required to use a different structure.
    Since you are writing a custom export, you will need to do one of the following:
    Option A:
    1.  Retrieve the layout from the ALV as it will not necessarily be the same as when the original was created.  The user may have moved a column or hidden one.
    2.  Create a structure for the export file that has only text fields.  It should contain all of the columns from the FCAT.  This can be done by creating another dynamic table and using the original FCAT and current layout.
    3.  Insert the headings as the first row of the export file.
    4.  Loop thru the internal table, compare it with the layout, and only insert the requested records into the export file.
    5.  Export the file.
    or Option B:
    1.  Make sure the internal table has only text fields and insert the headings as the first record.
    2.  Insert all other records with fields converted to alphanumeric.
    3.  Use the standard export function.
    Hope this helps,
    Brian

  • Can I cut, copy and paste a block of text in PL/SQL Developer?

    I have been using TextPad to put together SQL statements by using the cut, copy and pasting of BLOCKS of text.
    Example:
    I copy the describe of a table, replace varchar, number, date will 10 spaces and then copy the column names in a block and paste it further down the TextPad.
    Then I join the lines into one string, replace the spaces with commas
    Then I insert in front of the column name the INSERT INTO table_name(
    Then I get the values by copying from somewhere else and paste then in block text where they need to go. ETC, ETC.
    Thank you, Bill

    In 2.0 you should be able to just type
    INSERT INTO emp(
    and do multiple selections from code completion list of suggested emp columns (by holding ctrl or shift key). Same for "select" and "from" clauses (with optional auto aliasing).

  • In Acrobat 8 Professional, how can I change the typewriter text color?

    I tried selecting the text then pressing Ctrl-E but the text properties toolbar that appears says, "No current selection." I tried this method another user suggested:
    "1. Use the text box tool to type some text, then select the text
    2. Use the properties bar, ctrl-E, or View > Toolbars > Properties Bar, to change the color of the font
    3. Highlight the text, not the text box and copy the text.
    4. Click on the typewriter tool and type some text.
    5. Click on the comments menu and select "Show Comments List", in the comments list you should see the typewriter entry from step 4 above.
    6. Highlight the typewriter text in the comments window then paste the copied text from step 3 above.  It should paste with the color selected in the properties bar.
    7. Right click an area of the typewriter entry in the comments list, and choose properties.
    8. On the General tab check the "Make Properties Default" Check box and click OK.
    All new typewriter entries should now use this new font color. "
    But when I get to STEP #2 the text properties toolbar that appears has all the options to edit the text shaded so I cannot select the option to change the text color. Any help would be appreciated!

    There really aren't default outgoing font settings. They are only there for viewing. A workaround I have seen mentioned is to start you signature with the font style you want to use. When you start your message, click in that first part of your signature.
    Something like
    defaults
    Signature

  • Download and upload selection screen texts

    hello,
           My requirement is to upoad and download selection screen texts from one system to another..
           How do download  the selection screen texts from program to the application server and then upload them on another system. I am writing a bdc to carry out this process...
          Please help me out with this..
    Thank you,

    Hi,
      Why don't you just transport it? If it is linked you can asked basis to set the transport part and link it. If it is not you can download the transport and import it on another system.
      If you still need a program to do that. You can use SAPlink on [http://wiki.sdn.sap.com/wiki/display/ABAP/SAPlink]. SDN provided such code already just download it and implement it on both of your system then you can copy a program with selection screen.
    Cheers,
    Chaiphon

  • How do I copy and paste an image form the internet to Keynote. I have done this successfully in the past by selecting copy and then paste by using the right click function and now am unable to do so. I am thinking it is an outdate OS problem...not sure.

    How do I copy and paste an image from the internet to Keynote. I have done so successfully in the paste by using the copy and paste right click functions but am unable to do so now. That was about a year ago that I attempted that I was able to do this. Thank you for your help.

    Some images are copy-protected.
    If all else fails, you can make a screen shot of the image: 
    With the image visible in your browser, press CMD-Shift-4 and your cursor will change to crosshairs.
    Position the cross hairs at one of the corners of what you want to copy and drag to the opposite corner, then release the mouse. An copy of the image will be saved to your desktop.
    You can now edit and use this image.
    Be sure to respect copyrights.
    Message was edited by: bwfromspring hill

  • With PS 7  create new  Place two objects on the new file  then you may cut copy and paste Cs2  create new  place two object on the new file Cut is not available how does one cut and paste in new file

    With PS 7
    create new
    Place two objects on the new file
    then you may cut copy and paste
    Cs2
    create new
    place two object on the new file
    Cut is not available how does one cut and paste in new file

    If your using File>Place then photoshop cs2 creates what's known as Smart Objects, which photoshop 7 didn't have.
    In photoshop cs2 you can rasterize the smart objects and that should make the Cut function available.
    Select both placed layers, right click on the area to the right of the tumbnail and select Rasterize Layers.
    If in photoshop cs2 you to Help>Photoshop Help and look under Layers>Smart Objects, that should give you a good overview of what smart objects are.

  • Purchased songs in the past then recently purchasd new songs,  but the new purchases replaced all of my old purchases.  How can I retrieve my old purchases?  Cannot find them in any of my playlists.

    Purchased songs in the past then recently purchasd new songs,  but the new purchases replaced all of my old purchases.  How can I retrieve my old purchases?  Cannot find them in any of my playlists.

    If you purchased all of the songs through itunes store, please follow these steps:
    1. Open up Itunes and Click on Itunes Store
    2. Once you're in the Itunes Store look to right side of the screen and you should see the word "purchased". Click purchased and you'll be sent to a purchase screen.
    3. Click on "All Songs" and then it will show all the songs you've downloaded. From there you just hit the button that looks like a cloud with an arrow on it, and it will download all the songs all over again.

  • How to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    how to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    There is a more specific Forum …
    Photoshop Scripting

  • Copying and pasting adjustments.  When I copy the adjustments of an image, I thought I could then select several images and batch paste the adjustments to all selected images. But instead it's only pasting to the first photo of the selection. What am I do

    Copying and pasting adjustments.  When I copy the adjustments of an image, I thought I could then select several images and batch paste the adjustments to all selected images. But instead it's only pasting to the first photo of the selected. What am I doing wrong?

    Copy and Paste develop settings in Develop mode on multiple photos on the film strip works for me, even with Auto-Sync turned off.  Lr5.6 OSx 10.8.5

  • How do I copy and paste from one page or file to another page or file - on the same screen?

    How do I copy and paste from one page or file to another - on the same screen?

      Open both of your images in the Editor. Click on the image you want to copy and press Ctrtl+A (select all) followed by Ctrl+C (copy) then click the tab for your other image and press Ctrl+V (paste)
    Alternatively click on your background image then simply drag the second image from the photo/project bin and drop it into the main editor workspace on top of the background image. Use the move tool to position and the corner handles of the bounding box to scale.

Maybe you are looking for