Duplicate a paragraph in place

Hello All,
I have a paragraph with an anchored frame in it.
A paragraph with some text and a frame [frame].
I would like to duplicate this paragraph so there are two identical paragraphs together.
A paragraph with some text and a frame [frame].
A paragraph with some text and a frame [frame].
I tried using the duplicate method, but the closest I can get the duplicate is at the end of the story. Thank you very much.
Rick Quatro
rick at frameexpert dot com
585-659-8267

Sorry about that. CS3 and JavaScript. Here is my code:
var oPgf = app.selection[0].paragraphs[0];
oPgf.duplicate(LocationOptions.AFTER,oPgf.parent);
Rick

Similar Messages

  • Script to duplicate Basic Paragraph style, then change character point size

    I'm looking to create a script that will create a cascade of paragraph styles based on the [Basic Paragraph] style settings. My goal is for each new paragraph style's character point size to be a percentage of the original [Basic Paragraph]'s. So if [Basic Paragraph] is 100% (character point size 10pt), the script would create a paragraph style named '120%' that has a character point size of 12pt. Then 133%, 140%, so on and on. I modified a script found on this forum to generate those new styles, but I don't know how to create them to be basedOn the [Basic Paragraph]. Any help would be very much appreciated, thanks in advance.
    current script:
    var doc = app.activeDocument,  
        pstyle = ["100%", "120%", "133%" ];  
    for(var i =0;i<pstyle.length;i++)  
            if(pstyle[i] == "100%") 
                doc.paragraphStyles.add({name:pstyle[i], appliedFont:"Stag", pointSize:10});              
            else if(pstyle[i] == "120%") 
                doc.paragraphStyles.add({name:pstyle[i], appliedFont:"Stag", pointSize:10*1.2})              
            else if(pstyle[i] == "133%") 
                doc.paragraphStyles.add({name:pstyle[i], appliedFont:"Stag", pointSize:10*1.33333})              

    Try this,
    var doc = app.activeDocument, 
        pstyle = ["100%", "120%", "133%" ]; 
    for(var i =0;i<pstyle.length;i++) 
            if(pstyle[i] == "100%")
                doc.paragraphStyles.add({name:pstyle[i], basedOn: doc.paragraphStyles[1], appliedFont:"Minion Pro", pointSize:10});             
            else if(pstyle[i] == "120%")
                doc.paragraphStyles.add({name:pstyle[i], basedOn: doc.paragraphStyles[1], appliedFont:"Minion Pro", pointSize:10*12})             
            else if(pstyle[i] == "133%")
                doc.paragraphStyles.add({name:pstyle[i], basedOn: doc.paragraphStyles[1], appliedFont:"Minion Pro", pointSize:10*1.33333})             
    Vandy

  • Cs5 / duplicate and paste in place ?

    Hi guys
    sorry if this is a stupid question but I haven´t found a solution yet and before I go crazy I ask you
    So, in cs3 (which I used before I bought cs5) I was able to duplicate an object into a new position. Does that make sense? mmh, so ie if I had an object and I dragged it while pressing alt and kept on duplicating it used the same new position to copy it to. (very handy if you have 20 lines with the same distance, so all I did was drag + alt and then duplicate them as often as I needed to.)
    Is there any way to do that in cs5? Only way I found was use move it and then press cms+shift+m for move and then use the copy button. But this is very annoying since I have to open the move menu for every single copy action...
    Sorry, this is a quite confused desctription of the problem, I´m not sure how to explain it in a better way..
    Thanks, any help is appreciated!
    teschka

    CS5 should work no differently than CS3. Option/Alt drag to make a copy, then Command/Control D to step and repeat. Check your Keyboard Shortcuts (Edit Menu) to make sure that the shortcut wasn’t changed. If you deselect the copied object after copying once but before pressing Command/Control D then you break Illustrator’s concentration and it does not know what transformation you are duplicating.
    The Transform Again command is pretty versatile; it repeats the last transformation, which includes any duplication, rotation, move, or scaling.
    I only drew one circle, the rest are Option-transformations using the move, scale, and rotate tools.

  • Deleting Duplicates from a table

    Its a huge table with 52 fields and 30k rows. I need to delete the duplicates based on one of the fields. GROUP BY is taking a lot of time. Is there a quicker way to delete the duplicates using SQL.
    Thanks.

    How many duplicates have you got? Do you have even a vague idea? 1%? 20%? 90%?
    One way would be to add a unique constraint on the column in question. This will fail, of course, but you can use the EXCEPTIONS INTO clause to find all the ROWIDs which have duplicate values. You can then choose to delete those rows using a variant on teh query already posted. You may need to run %ORACLE_HOME%\rdbms\admin\utlexcptn.sql to build the EXCEPTIONS table first.
    This may seem like some unnecessary work, but the most effective way of deleting duplicates from a table is to have relational integrity constraints in place which prevent you having duplicates in the first place. To paraphrase Tim Gorman, you can't get faster than zero work!
    Cheers, APC

  • Cannot get "Edit / Duplicate" to work in Premiere Elements 13

    Hi.  I'm using Premiere Elements 13 on Windows 8.1.  I've created a title template and placed it above a movie clip. I have several other movie clips, and I want to duplicate the title template I created to use with the remaining movie clips in my project, but with different text. According to what I've read, Duplicate under the Edit menu will permit me to do just that. The problem I'm having is that I cannot accomplish this as, no matter what I do, the Duplicate feature remains grayed out and is not usable. I can't copy and paste my title template because any text I edit will apply to all of my title clips. Any suggestions are appreciated. Thanks, Jeff

    Jeff
    If you want to duplicate a text title created in the opened Titler or a title template opened in the Titler, you close the Titler and go to Project Assets and right click the thumbnail for the text title or title template and then drag that file to the Timeline. Double click it on the Timeline to open the Titler if you want to do edits on the duplicate.
    Expert workspace Edit Menu/Duplicate is not the place to go. Expert workspace Project Assets and right click/Duplicate is the place.
    Please review and consider, and then let us know if the above worked for you.
    Thanks.
    ATR

  • How to duplicate calendar events copy paste?

    I am trying to build my schedule on calendars with my iPad. I would like to put in my work schedule but I don't work the same days every week. I am looking for a way to copy paste/duplicate entries so I don't have to keep inputting them. Because I don't work the same days each week/month I can't use the repeat feature. I have tried a long press to copy and paste but it moves the whole event and doesn't duplicate it. Is there a way to do this? I have found that I can do this on my Macbook Pro in iCal and then it updates the iPad through iCloud but I would like to do it with my iPad because I have the iPad and iPhone with me all the time and the Macbook stays at home.

    As you know by now, there is now way to copy and paste (drag and drop duplicate) iPad Calendar events. However, I have found a workaround that allows you to duplicate an event and place the duplicates in various dates on your Calendar. NOTE: This is probably not too practical for making a single copy, but it does save time and keystrokes for multiple copies.  In Calendar, tap on the event you want to duplicate and select Edit. In the Edit window select Repeat. In the Repeat window select Every Day, then tap Done to take you back to the Edit menu.  Tap End Repeat and select an end date that will give you the number of copies you want (e.g., if the original event date is 11/12 and you want 5 copies, select 11/17 as the End Repeat date.  Tap Done twice to return to the Calendar. Then just drag the Repeats/Copies to the various dates where you want them placed (works best in Month view). When you finish each drag/drop, you will get a "This is a repeating event" pop-up window; you need to select "Save for this event only."

  • How to place raster images as smart objects?

    I'm trying to duplicate Photoshop's File:Place menu functionality and I'm experiencing something that I can't figure out. (I've added my code to the end of this message.)
    I have a variety of test EPS images that I can run through the File:Place menu. They all appear on the document as "Smart Objects". That is I can then do a bunch of transforms to the image (like rotate, move, deform) before committing to the image to the document.
    The important point here is that some images, when opened by Photoshop, first ask that I "Rasterize EPS Format" while others just open up without comment.
    While doing these File:Place actions, I've been using the Listener plugin that comes with the SDK to generate code dumps of my actions. From these I've then generated my own code for placing images onto a document. I've had to re-arrange the code a bit to work in Objective-C so there's a good chance that I've done something wrong while translating.
    Now if you look at my code you notice a commented out section. If you uncomment those lines then you basically have what I got from the Listener plugin log. But the problem is that this code then doesn't act like the File:Place menu action. It creates a new layer, places the image on the page - but its gone one step too far and the image is no longer a "Smart Object". The image is committed to the layer.
    With a bit of experimenting I commented out the line that you can see commented out in my code. However, this does something odd. For all images you can see Photoshop put up a busy icon for a few seconds showing that it is process, but only images that Photoshop wants to "Rasterize EPS Format" actually appear on the page as Smart Objects. Trying to place the images that Photoshop doesn't rasterize results in nothing appearing.
    That's my problem. If I uncomment that line in my code then all images that I test with appear on the page - but not as Smart Objects. If I comment out the code then only images that Photoshop wants to rasterize appear - but those that do appear then appear as Smart Objects.
    So that's my goal: to place any image onto a document as a Smart Object just like Photoshop's File:Place menu command does. Any ideas where I'm going wrong?
    - (SPErr)photoshopPlayeventPlace:(char *)cPath
    PIActionDescriptor result = NULL;
    Auto_Desc descriptor;
    Auto_Desc offsetDetails;
    SPErr error = kSPNoError;
    Handle aliasValue = NULL;
    FullPathToAlias(cPath, aliasValue);
    do
    error = sPSActionDescriptor->PutAlias(descriptor.get(), keyNull, aliasValue);
    if (error) break;
    // error = sPSActionDescriptor->PutEnumerated(descriptor.get(), keyFreeTransformCenterState, typeQuadCenterState, enumQCSAverage);
    // if (error) break;
    error = sPSActionDescriptor->PutUnitFloat(offsetDetails.get(), keyHorizontal, unitDistance, 0);
    if (error) break;
    error = sPSActionDescriptor->PutUnitFloat(offsetDetails.get(), keyVertical, unitDistance, 0);
    if (error) break;
    error = sPSActionDescriptor->PutObject(descriptor.get(), keyOffset, classOffset, offsetDetails.get());
    if (error) break;
    error = sPSActionControl->Play(&result, eventPlace, descriptor.get(), plugInDialogSilent);
    if (error) break;
    while (false);
    if (result != NULL) sPSActionDescriptor->Free(result);
    if (aliasValue != NULL) sPSHandle->Dispose(aliasValue);
    return error;

    If you want to go with Batch I would recommend creating an Action of more or less these steps:
    • set the resolution to the same as the background image’s
    • change the image from Background Layer to regular Layer if necessary
    • convert it to a Smart Object
    • add a Drop Shadow Layer Style to the image (do not use Global Angle)
    • place the background image (File > Place …)
    • move it behind the image layer
    • Image > Reveal All
    • make Selection from that layer’s transparency (cmd-click its icon in the Layers Panel) and use Image > Crop
    • select and transform the image layer to fit the intended position
    This would naturally work out best if the images had the same size and proportions.
    For the reflection on the floor duplicate the image, flip it vertically, move it in position and reduce its opacity to maybe 10%.
    Realistically you may have to hide it partially behind the pillows, a Vector Mask would be an option.

  • Quick paragraph style application transformation ... or reverse engineering a document the hard way?

    Hi everyone,
    I'm using Indesign 5.5 for Windows and have inherited a technical document with no styling applied (not even text threads or auto-pagination), but all the fonts are in the correct sizes and colours. So it looks ok in print, but trying to actually do anything with it is a nightmare.  For obvious reasons I WANT to apply paragraph styles to the document so I can generate a new auto-updating TOC, maintain and add to it, and all the other good stuff that means.
    My question is this - is my only choice to go through page by page and apply new styles (matching their current appearence) to every different heading and bullet point, or is there a nice easy way (or script) that i can use to whizz through the document for me, neatly applying a new style to each different font variety or element it finds (not altering their appearence) and leaving me with a nice list of styles I can rename (then take all the credit for? ha!) Basically take a document that's already been put together wrong, and make it right? I think this might've been imported into InDesign from something like Quark, hence the state it's in, but I don't have access to anything but this version. Any help you could offer would be great.  Oh, and if (as I suspect) my only option is indeed to apply all the styles manually one line at a time, then feel free to point and laugh, I doubtless deserve it.
    Thanks!
    Phil

    If you need to reproduce the existing page layouts, I'd suggest you read up more on what paragraph styles can do, before annihilating whatever layout and flow behaviors have been stuck on the content. For example, if level "X" headings always start at the top of a text frame, or top of a page, or even top of a right page, or top of a left page, a paragraph style property can do this. So you'd want to create and apply a paragraph that does this to those paragraphs before you thread text frames; the top of <whatever> frame paragraph property will keep the paragraphs in place.
    It is possible to create paragraph styles with properties that behave crazily when they do what you define for them. For example, you can define a paragraph style that sets the style of the paragraph that's created when you press Enter/Return. You can also use the smartness built into the Next Style property. If a paragraph style, say Head1 is defined to create a new paragraph when you press Enter/Return, it can also apply its next style property to the paragraph follows Head1 in the same text selection. So, if you select a paragraph that's supposed to become Head1 (which defines its next style as BodyAfterHead1) and also select the paragraph that follows it,  and then hold down Ctrl+Click on the Head1 style's name in the Paragraph Styles panel, Apply "Head1" then Next Style appears. If BodyAfterHead1 defines Body as its next style, and more than two consecutive paragraphs are selected, Head1 will be applied to the first paragraph, BodyAfterHead1 will be applied to the second paragraph, and Body will be applied to the third and following paragraphs.
    So, you'll be investing in setting up the Next Style property for paragraph styles, and selecting as many consecutive paragraphs as needed for applying a pattern of styles that agrees with your next style definitions. Each time you use this feature, you're collecting benefits from your investment.
    If you need to reproduce the look of the layout on some number of pages, you could export to PDF and use a script to efficiently place each page of a multi-page PDF on a "PDF layer" you create, that appears on every document page in the ID document, lock and move the layer below the active document layer, and use it as a placement underlay.
    Search Google for terms like "InDesign apply style and next style," "InDesign place multipage pdf script," "InDesign installing and using scripts," "InDesign paragraph style keep options," and "InDesign start paragraph options," without quotes, for informative links to anywhere on the Web, as well as on these Adobe forums. To limit the searches to Adobe forums only, include "forums.adobe" without quotes in the search query.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Avoid processing of Duplicate Synchronous Messages

    Hi,
    I have two synchronous messages coming with almost zero delay in it. Both the messages contains the same data which is causing a major problem in the backend.
    I want to avoid the processing of duplicate message. My scenario is HTTP to SOAP (sync)...
    The option that I thought of are:
    - Using BPM so that messages can be sent sequentially to backend and there it can be checked for duplicate entries (client is not ready to use BPM)
    - Providing Delay in Message Mapping...(I will end up with same issue as same amount of delay will be provided to both the messages may or may not but dont want to take risk)
    - I cant make a look up to see if entry already exists as the difference between incoming duplicate messages are so small that it will not give the desired result.
    Also thought of creating message ID in URL only but it is not possible with QOS BE.
    Is there any way through which I can process the sync messages in sequential way... or something that will avoid processing
    of duplicate messages?
    Any thought?
    Thanks,
    Sunil Singh

    Hi Sunil,
    Checking the data weather is duplicate or not (ie, its already resides in Rev application) would sure require to use of lookup or BPM.
    >
    SUNIL SINGH wrote:
    > I want to avoid the processing of duplicate message. My scenario is HTTP to SOAP (sync)...
    even if the data is comming with some delay between them. how will you check that is duplicate message or not unless you use lookup or BPM in it to compare two independent messages at runtime.
    My idea would be! instead of trying to put a validation at PI.
    check in the source system whats causing their application to generate duplicate messages in first place and send it to PI.
    check whats the issue over there and ask them to rectify it or rather not to trigger duplicate data. (it would be easier to control this from source application).
    PS: even if we find a way to stop duplicate messages to be processed inside PI. its unnecessary load for PI.
    -->Senthilprakash.

  • Is there auto detect duplicates to prevent copying in iTunes 11?

    This seemed to be a legacy issue. So I'm wondering if the latest iTunes resolved this problem.
    It is fine to be able to detect and delete but the point is it shouldn't happen in the first place. So I'm hoping the new iTunes is able to detect the latest and keep only the latest copy. Avoiding duplicates should be built into the system.
    Also, it could be smarter when it says 'Delect Exact Duplicates' that it does exactly just that ie list the duplicates copies, not include the original or latest copy. That way you can select all the 'duplicates' and delete at one go.
    I hope someone from Apple gets to read this. Thanks.
    P/S: btw, 'Detect Exact Duplicates' will only show up AFTER you search for it in Help. Otherwise, only 'Detect Duplicates' shows. I think its a glich.

    Apple don't read these forums for feedback, that should go to iTunes Feedback.
    Not creating duplicates in the first place is mainly a matter of organized workflow. If, before you rip one of your CDs, you check to see if you already have the album, then you can avoid creating duplicates. In fact iTunes will generally notice if you try to import the same CD twice. If, however, you import files ripped with another package into your library, and then decide to rip the CD with iTunes it probably won't make the connection.
    I've written recently in this post on why you might end up with duplicates and how you might remove them manually, though you probably already know. I've also written a Windows script to automate the removal of two classes of duplicates. As a Mac user you could take advantage of the efforts made by Doug Adams who has scripts for most organizing iTunes needs and some software for duplicates in particular.
    tt2

  • Can i access and edit photos direct from finder rather than import and duplicate in iphoto?

    Hi, I have tens of thousands of photos so would rather not duplicate them in two places and eat into my storage. Is it possible to access photos saved in My Pictures direct from iPhoto without having to import them directly (and therefore duplicate them) into iPhoto? Any help appreciated! Thank you

    Yes but you don't want to.
    It's called running a Referenced Library and you can read about the issues and pitfalls in this thread:
    https://discussions.apple.com/thread/3062728?tstart=0
    Frankly the better way to work is to import them to iPhoto and let iPhoto copy the files. Live and work with it for a while and when you're content trash your pre-existing filing system - it's of no use to you any way. If you use iPhoto (or similar apps, like Aperture, Lightroom etc) you access the photos via those apps and not the Finder - the point of using a Photo Manager after all.
    If you have a folder tree or pre-existing organisation structure you can recreate it quite quickly in iPhoto. For instance:
    If you want to duplicate your Folder Tree in iPhoto:
    Start at the bottom of the hierarchy and drag a folder of images to the Album Heading in iPhoto. The pics will be imported and an Album of the same name created.
    You can then create the Enclosing Folders in the iPhoto Window (File -> New Folder) and drag the Album to it. Folders can contain other Folders (Nested Folders) and Albums.
    However, is your folder system date based? Then this form of organisation is a bit pointless in iPhoto when Smart Albums or the Calendar tool (Click on the wee magnifying glass in the Search Box) mean you can find the photos taken on any day, month or year at a click. With Smart Albums it's easy to find photos from specific range - say, June 3 to August 25, 2009 etc.
    If your folder system is theme based - Xmas pics, Birthday pics etc, then you'll find Keywords are much more flexible, and can be used in conjunction with other criteria for making Smart Albums and searches.
    Regards
    TD

  • Best Way to Remove Duplicate Movies

    I'm a professor and use Keynote for my lectures. I noticed that my lecture files are HUGE (my summary lecture was over 650mb). When I looked at the package I found several duplicates of movies and images that I use in my slides. Is there any efficient and risk free way to delete the extras? Is the a way of putting them in without making duplicates in the first place? I often duplicate slides and move things around each term to improve my class.

    Really easy:
    Find all the movies in your iPhoto Library. Then Export them to a Folder. Then delete them from iPhoto.
    What makes this easy is that every movie is automatically keyworded when you import it.
    So to find all the Movies:
    File -> New Smart Album
    Keyword -> is -> Movie
    Now that you've found them. Select All and
    File -> Export *_Kind: Original_* (Note: setting the Kind: to Original is vital)
    And export them.
    Then trash them from iPhoto.
    Regards
    TD

  • Duplicate items in Sidebar

    I have 4 exact duplicates of my main Places icons. They appear to be linked to one another, because clicking on any of the duplicate ones (beyond the first set) simply selects the matching item in the first set.
    If I try and remove one of the duplicate icons, it removes all of the related items. For instance, I tried removing the 2nd Sites icon and this removed all the Sites icons.
    http://i.imgur.com/SsupM.png
    Already tried restarting, killall Finder... other ideas?
    Ideas?

    Hi
    Navigate to /Users/Home/Library/Preferences folder and remove the com.apple.sidebars.plist. Put it in the trash and restart. Does the problem go away?
    HTH?
    Tony

  • ITune Library duplicates

    I have noticed many "postings" about duplicates being created in the iTune library with many suggestions about how to remove them (without any good permanent solutions). What I don't understand why does iTunes allow duplicates in the first place?
    My second question is "why are the duplicates being created?". Is there a setting that can be selected to keep this from happening in the future?

    Do the duplicates have a little cloud next to them?
    Open iTunes
    Preferences
    Store
    Uncheck Show iTunes in the Cloud Purchases.

  • Duplicates on sync

    I am using win7, office 2007 or 2010 (different computer) nokia PC suite 7.1.51.0 Hotmail premium account and outlook connector with N95 8GB (and my wifes N95).
    Outlook connector syns to hotmail in both directions and the phones sync to outlook in both directions, which should give same data on all three (obviously diiferent to my wifes three).
    We are getting a lot of duplicate items in calendar and contacts, can anyone solve the route cause, we can do the clean up after.
    Many thanks Sean

    We are still syncing both phones and always have duplicates in all three places. i.e. a calendar item entered in hotmail shows in outlook, when we sync with pcsuite the item shows twice in phone, outlook and then hotmail. If we enter an item on the phone it syncs with outlook but later after connecting to the internet it appears in outlook, hotmail and back on the phone twice.
    Can anyone help on this please. Thanks Sean

Maybe you are looking for

  • Closing Terminal window tabs shrinks Terminal window height

    Open a Terminal window, press Command-T to create a tab, and then Ctrl-D to close that new tab, the Terminal window height decreases by one row. This most certainly appears to be a bug. How do I report this to Apple?

  • "Table in Table" in PDF Form

    Hi all, in my webdynpro view's content is two-level structure. Under top node is another non-singleton node and within this node another non-singleton node. I would like to display such structured information in PDF Form. I have created Subform (flow

  • How to add note to underlined text for pdf within Preview

    Sometimes I can right-click in underlined or highlighted text in Preview and get an option "add note" so that there's a text box without an balloon icon (like the one you get by pressing control+N). But it is so tricky that I have to try several time

  • HT201303 Information is stating invalid security on my credit card

    Unable to download because information is saving invalid serity code on. Credit my credit card

  • B590 power button doesn't work

    The laptop is about a year old, but now the powerbutton doesn't work anymore, to start the computer I am able to use the small reset button next to the powerbutton to start it. I really need to know if there is any fix that can be done or I need to g