Moving text from one place to another

This is a Macintosh AppleScript questions on InDesign CS3.
I want to move a portion of a paragraph several lines down. Here's what I want to do:
Select from the word "Clutch:" to end of the line (including the paragraph return)
Cut the selection
Paste cut text at left margin, two lines down
Repeat to end of story
Can anyone help?

It sounds like you want something like this:<br /><br />tell application "Adobe InDesign CS3"<br />    tell document 1<br />        tell prent story of text frame 1 -- or whatever<br />            considering case<br />                set parCount to count of paragraphs<br />                repeat with i from (parCount - 2) to 1 by -1 -- work from<br />end<br />                    if paragraph i contains "Clutch:" then<br />                        set theWord to (object reference of word 1 of<br />paragraph i whose contents = "Clutch:")<br />                        move (text from character 1 of theWord to character<br />-1 of paragraph i) to after character -1 of paragraph (i + 2)<br />                    end if<br />                end repeat<br />            end considering<br />        end tell<br />    end tell<br />end tell<br /><br /><br />-- <br />Shane Stanley <[email protected]>

Similar Messages

  • How can I copy text from one card to another while creating cards using Iphoto?

    I created two cards with different pictures using Iphoto on Macnotebook. 
    I want to use the same text message.
    How can I copy text from one card to another?

    select the text and copy (edit menu ==> copy) tehn gpo to the next card and paste
    LN

  • How do I copy text from one layer to  another?

    I have Googled this but not a single answer seems to work.
    I am using Photoshop CS4 on OS X 10.6.7.
    OK, so  I  have a layer that  has some text in it.  I would like to  be able to  simply copy that  text  from one layer  to  another, but this seems to  be impossible as the Edit Paste menu item is grayed out after I have copied it in to the clipboard.  I can paste it into  the SAME layer, but not into another layer.
    This is how I am trying to  do  this.
    In the layer  with the text, click on the "T" icon to  the left.
    Click on the text, in the layer that I  want to  copy. 
    I select the text (either  by  clicking and dragging or pressing Command-A).
    Next I press Command-C.
    Then I  click on the layer In the Layer Panel) where I want to  paste the text.
    Pressing Command-V is impossible because the Edit-Paste menu option is grayed out!!!!
    WHY??????
    Perhaps more importantly, HOW do I copy text  from one layer to  another?

    First thing you can simply right click on the Text Layer and choose Duplicate Layer.  But that will create a new Text Lay
    er identical to the one you have.
    To answer your question in your case....  Create the Text Layer.   Make a New Layer.  Or have the layer you want to paste into visible.
    Highlight the text layer in the Layer Palette and Ctrl+Click (Win) Cmd+Click(Mac) so that you see marching ants walking around your text.
    Edit>Copy.
    Then highlight your Layer you want to paste into and hit Edit>Paste or Cmd+V / Ctrl+V.

  • How can I script moving paths from one file to another?

    Hello. I have 1 image with various color correction layers. The other is the exact same size but only contains paths. How can I script moving paths from one file to another? Thanks, in advance, for any help you can offer. Thanks!

    Thanks! This one actually worked for me. Thanks for your help.
    http://forums.adobe.com/message/3305389#3305389

  • Moving images from one library to another; or how to have 2 libraries open at the same time in Aperture 2

    This may be something easy but for some reason I am having a hard time figuring this out. Basically this is the situation: I have a library on my MBP hd that I import pictures to when I am not hooked up to my external hd for the time being. The main library is of course on the external 2tb drive. How do I have 2 libraries open so that I can essentially drag and drop the pictures from one library to another? It would basically be like moving files from one project to another. Thanks for any help!

    Always keep a backup of your original images, before you delete them. I make a backup right form the card, before I even import them to Aperture.
    How are your images stored right now? Are the referenced or managed? On your big volume I'd consolidate the newly imported images, to be sure they are really inside the Aperture library before I delete any images outside the library.
    but they have the little yellow triangle caution symbol on them and I can see them but not really edit them
    That is a very typical problem, when you imported your images as referenced images then somehow delete or move the original master image files, that are stored outside the Aperture library.
    Do you still have the original masters of the images with the yellow triangle that you cannot edit? In Aperture 3 you can point Aperture to the location of the master image file "File >Locate referenced image" - probably Aperture 2 has a similar command to let you reconnect your masters, if you still have them. Look into the manual.

  • Move text from one artboard to another

    Hi I have 3 artboards open and am trying to move text from one artboard to another, each piece of text is on a different layer, but when I use the selection tool and just drag it across to the next artboard, nothing shows up.  How do I move text from one artboard to another?  Thanks

    Dont worry I now have it sussed.  I just needed to move the layers up in the stacking order.

  • Moving Image from one Review to Another?

    I attempted to upload an image (open in Photoshop) to a specific review. However, I could not see the desired review in the Photoshop CS Review panel. Out of frustration - after attempting to "find" the desired review for several minutes - I uploaded the image to another review and then went online, using Safari, to Acrobat.com.
    There is no visible means of moving an image from one review to another. There is a way of dragging one review (with all sub-images) to another location. But I can't see a way of moving a sub-image from one review to another review.
    IF there is some "magic" that someone knows I would sure appreciate some education.

    This works quite well for a single image review. I've moved them from one workspace to another. The issue is when a review has multiple images and you want to take only one of them from that review and move it to another review in another workspace; I can't seem to get that to work at all.
    When I open a review and navigate to the desired image, then click in the lower left corner and select a new workspace to move the image to, it moves the entire review - not the single image - to the new workspace.
    I guess I could delete the "part" from the workspace it currently exists in and then create it as a stand alone review, but then I won't be able to imbed it into another review as I want to do.
    The source frustration here is that I can't get CS Review in CSPS5 to navigate to the desired workspace/review. I get "ALL REVIEWS" displayed but not the workspaces... Any ideas on how to display workspaces instead of reviews?

  • Moving Stack from one folder to another?

    Is there a way to keep a stack together while moving it from one folder to another. When I grab the stack and drop it to a folder, I view the folder and the images are no longer in a stack. It would save me a lot of time if they would stay stacked. Am I missing something?
    Thank you.

    Well your code is unreadable because you didn't post it properly, but I'd guess you've fallen into the old multiple-delete trap in a new way. It's like this:
    To start with you have messages numbered 0, 1, and 2, let's say. So you write a loop that lets i run from 0 to 2 and delete message number i in the loop. What really happens? The first time through the loop you delete message number 0, after which you are left with messages numbered 0 and 1. The second time through the loop you delete message number 1, after which you are left with message 0 only. The third time through the loop you delete message 2, which isn't there and you get that message.
    That's just a guess, I didn't have the patience to read that ugly unformatted code. There are two ways to do the multiple delete properly, if that's actually your problem: (1) run the loop upwards from 0 and always delete message 0; (2) run the loop downwards from N-1 to 0 and delete message i.

  • Moving personalization from one instance to another.

    Hi All,
    Could anyone guide me with the steps of moving personalizations from one istance to another..
    I tried this syntax..
    FNDLOAD <userid>/<password> 0 Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct <filename.ldt> FND_FORM_CUSTOM_RULES form_name=<form name>
    what could be the filename.ldt location,
    should i execute this from putty on unix box...
    Regards, Ashish
    Edited by: Ashish on Aug 30, 2010 9:59 AM

    Ashish,
    I am followin that document, but it does not tell me where do i execute the script.. Please if you could..Run the command on the server as applmgr user and after sourcing the application env file. You can run the command anywhere provided that the directory is writable by applmgr user.
    Thanks,
    Hussein

  • Moving Itunes From one computer to another

    HI,
    Can anyone offer advice for moving Itunes from one laptop to another? The original laptop that has my itunes on it, has broke, it froze and will not operate. Rather that lose all my purchased music and playlists i would like to swap it to another laptop. Can anyone advise if this will be possible and how to do it? Both laptops have windows XP installed
    thanks
    Arlene

    Hi
    I am having a similar problem- when I record from Itunes to a cd it only works in "Data cd" format in the advanced tab. That's okay, but when I re-insert the cd and try to import it, it doesn't show anything- it plays in Itunes okay. There aren't any little boxes to check for selecting any songs and if I try to use the import function, it shows as blank.(file type shows as .txt) I am using Itunes 6- would Itunes 7 help this?
    thanks- I have a lot of music to transfer and this is a problem.
    Max

  • Moving tabs from one window to another makes the new window vanish. I have hot corners enabled so when I move up to the right corner of my display I can see all my open windows but when I click on the tab that I moved to make it its own window it vanishes

    Moving tabs from one window to another makes the new window vanish. I have hot corners enabled so when I move up to the right corner of my display I can see all my open windows but when I click on the tab that I moved to make it its own window it vanishes

    I came up with an alternative solution.
    Instead of actually trying to move the JInternalFrame from one JDesktopPane to another, I added a single, maximized JInternalFrame to the left side. When one of the right side frames is to be docked, I merely copy its ContentPane to the single JInternalFrame on the left, set the original to be non-visible, and adjust the properties of the JSplitPane to make the "docked" frame appear.
    When the "close" button on the docked frame is pressed, I simply undo this procedure to "undock" the frame and redisplay it on the right-hand side (with its content intact from the docked frame, but in its original position).

  • Can I Copy and Paste text from one Contact to Another on iPhone 3G?

    Can I Copy and Paste text from one Contact to Another on iPhone 3G?
    Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
    I had a challenge importing from my outlook as it created dual entries for people I had with multiple email addresses or telephone numbers so I need to copy and paste contact info from one to antoher.
    Can anyone help?

    MCWEB wrote:
    Can I Copy and Paste text from one Contact to Another on iPhone 3G?
    You will be able to do copy & paste when 3.0 comes out this summer.
    Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
    No. You would make changes to the address book on your PC and then sync via iTunes.

  • Can Pages copy text from one page to another automatically?

    Can Pages automatically copy text from one page to another?
    For example recurring text in a document e.g. addressee details or a date (not today's date).
    I want to type the topic title of one letter and have it automatically filled into the correct field in the next page which will be a letter to a different recipient.
    The letter text will be different for each recipient so mail merge probably won't work.
    Thanks
    Andy

    Thanks that worked great!!!(for the first line)
    Now why wont it populate more than the one other text field?
    F.Lic.Table1.Row1.agt_ssn_lic.rawValue = xfa.event.newText;
    F.PAGE3.agt_ssn_1.rawValue = xfa.event.newText;
    F.PAGE4.agt_ssn_2.rawValue = xfa.event.newText;

  • I have never used PS, and I am trying to edit a brochure created by someone else.  I need to move text from one column to another

    I have never used PhotoShop and do not have time at the present. Please help me to move a section of text from one column to another in a brochure.

    Here are 3 options for future reference:
    1. With the setup you've described, apply a Match Move behavior to  the text and make the rectangle the source. Change the Transform parameter to Mimic source.  This way you can still adjust the text postion as needed, but the rectangle will drive the animation.
    2. Use a group to do the animation.  Put both your rectangle and text in the same group and animate the group's postion.
    3. Use the Link behavior.
    Each of these has it's advantages depending on what you need.

  • Copy Text from one quote to another

    Hi
    I need to copy text/notes related to one quotation to another.. I tried FM SAVE_TEXT and CRM_TEXT_MAINTAIN_OW but neither of it worked...
    Can anyone help me with this ?

    Hi Ashwineee,
    U can copy text from one quote to another by customizing also
    Just Check the settings of your text type in the text determination procedure.
    Select ur  text type and click on details u will find the text id description sequence and
    Transfer  field u have various options  u select the option "B" for ur text type .
    U can take reference of the  Standard Text determination Procedure "ORDER001"  for doing the same
    for your text determination Procedure
    Menu Path--
    Crm-Basic Functions- Text Management-Define Text Determination Procedure - select the Object --
    example for CRM_ORDERH and click on Procedure and select ur text determination procedure --     
    Select  Definition of Procedure that gives u details of  your   text type  and  its  options
    Hope it will Resolve ur problem
    Regards
    Pavan.A

Maybe you are looking for