Paragraph

Hi,
I made a script for add a continued at end of paragraph but unfunction, call you please help to fix it?
var myDialog = app.dialogs.add({name:"add continueds",canCancel:true});
with(myDialog){
    with(dialogColumns.add()){
        with(dialogRows.add()){
           var mySelection = dropdowns.add({stringList:["Continued", "continued", "Cont'd","cont'd"], selectedIndex:0});
if (myDialog.show() == true)
main();
function main(){
var myObject;
var myCheckSelection = false;
if(app.documents.length > 0){
  if(app.selection.length > 0){
   switch(app.selection[0].constructor.name){
    case "InsertionPoint":
    case "Character":
    case "Word":
    case "TextStyleRange":
    case "Line":
    case "Paragraph":
    case "TextColumn":
    case "Text":
    case "Cell":
    case "Column":
    case "Row":
    case "Table":
     myObject = app.selection[0];
     if(myObject != "None")
else{
  alert("No documents are open. Please open a document and try again.");
function addContinueds(){
    if (mySelection.selectedIndex == 0){
   app.findGrepPreferences.findWhat = "(.)\\r";
   app.changeGrepPreferences.changeTo = "$1 (Continued)\\r";
   app.selection[0].changeGrep();
   app.findGrepPreferences = app.changeGrepPreferences = null;
    if (mySelection.selectedIndex == 1){
   app.findGrepPreferences.findWhat = "(.)\\r";
   app.changeGrepPreferences.changeTo = "$1 (continued)\\r";
   app.selection[0].changeGrep();
   app.findGrepPreferences = app.changeGrepPreferences = null;
   if (mySelection.selectedIndex == 2){
   app.findGrepPreferences.findWhat = "(.)\\r";
   app.changeGrepPreferences.changeTo = "$1 (Cont'd)\\r";
   app.selection[0].changeGrep();
   app.findGrepPreferences = app.changeGrepPreferences = null;
  if (mySelection.selectedIndex == 3){
   app.findGrepPreferences.findWhat = "(.)\\r";
   app.changeGrepPreferences.changeTo = "$1 (cont'd)\\r";
   app.selection[0].changeGrep();
   app.findGrepPreferences = app.changeGrepPreferences = null;
John

One thing I have just thought about is that at one point these text boxes were synchronised text / tagged and then I selected the "delete tag" from them to have them as stand alone text boxes!
I have just retyped in a new text frame with the same content and it now works fine!
The bug bear is that it is not possible now to use these text frames, nor will it allow me to select any text from  within the frame and paste them into a new frame without it resulting in the above situation which means I now need to retype out ALL of the content! kind of defeats the object of synchronised text frames and being able to tag and untag! grrrr!
My conclusion is this is a bug!!!

Similar Messages

  • How do I use multiple paragraph styles in one line?

    I'm working on my thesis in APA style.  I'm creating a Table of Contents with the help of Pages.  When you get to Level 3 in APA headings (no problems with Levels 1 and 2) it needs to look like this:
    [0.5in Indent] Masculinities in higher education.  For men, the college experience.... (paragraph starts on same line as the heading).
    I created a paragraph style for the (bolded) heading above [Heading 3].  When I do this, like magic the heading shows up in the table of contents (yeah!).  However when I do this the rest of the paragraph shows up too (boo!).  When I highlight to change the just rest of the paragraph (not the heading) to the style "Body" it changes the heading too and removes it from the table of contents.  How can I make 2 paragraph styles work together in the same paragraph so I can use the tale of contents tool??  Surly there is a work-around.
    Pages 5

    As the name implies, paragraph styles are not intended to be used on a unit smaller than a paragraph. Therefore if you want the TOC to be automatically generated then you need to have distinct  paragraphs... as you specify the APA style with the content and heading continuous then you will have to manually create the TOC.

  • How to restrict editing of some paragraphs and allow for others in same document?

    I have a client that wants to put together standard proposals that have boiler plate information (long paragraphs and some imagery) that will not change. In the same document they have other information that is to be customized by sales teams (text and images). Sometimes, they will have a sentence or a phrase which needs changing in the middle of a long paragraph but the rest of it remains the same. Since these documents are shared and edited by multiple parties, they would like to restrict some paragraphs from editing while making other areas editable, perhaps on the same page of the document. Is there a way to do this in Acrobat Pro XI?

    Thanks for that, yes I’ve been creating pdfs in InDesign for better layout results. We want to generate a template that our international sales team can use for templates, sharing over a server, and trying to prevent them from ruining text flow, image flow etc. just wondering where my limitations are at.\
    Thanks for your help. Anymore suggestions are very welcome.

  • In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph?

    In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph. 
    I need to make a table of contents for my Mater's Thesis and want to use the automatic table of contents feature.  I want the first sentence of a paragraph to have a different paragraph setting than the rest of the paragraph.  Is this possible?
    Thanks!

    Nice of you to be doing this for your Mother's Thesis.
    There are several issues here:
    1. A Paragraph Style is what it says, the style for the paragraph
    2. You can format text within a paragraph by applying a Character Style
    3. Pages 5.5.1 lets you apply formatting to overall text for the T.O.C. but not parts of it and you can not retain that formatting as a Paragraph style
    So in answer to your question, no.
    You will need to create the T.O.C. manually and unfortunately as Pages 5.5.1 can't create bookmarks (just one of over 100 missing features) you will be unable to link the T.O.C. to the referred pages in the list.
    Peter
    Apple's marketing slogan:
    Pages 5.5.1 - Can't Do That!

  • In Pages 5.1 how do I change the default spacing after a paragraph? I used to be able to do this with the inspector. I no longer see the option.

    In pages 5.1 I was wondering how to change the line spacing after a paragraph.

    This is from the online Pages Help . You have the option to the Help in your Pages Help menu
    Adjust line spacing
    You can adjust the spacing between lines in a paragraph, and change the amount of space before or after a paragraph.
    Click in the paragraph whose spacing you want to change, or select one or more paragraphs.
    In the Text pane of the Format inspector, click Style.
    Click the disclosure triangle next to Spacing, then choose an option from the pop-up menu:
    Lines: Choose when the distance between ascenders (parts of letters that extend to the top of the line) and descenders (parts of letters that extend below the line) should stay the same. The space between lines is proportional to the font size.
    At least: Choose when the distance between lines should remain fixed (but not to overlap if the text gets large).The distance from one line to the next will never be less than the value you set, but it may be larger for larger fonts to prevent overlapping text lines.
    Exactly: The distance between the baselines.
    Between: The value you set increases the space between the lines, instead of increasing the height of the lines. By contrast, double-spacing doubles the height of each line.
    Click the arrows next to the spacing field to set the amount of space for the option you chose.
    To adjust the amount of space before and after the selected paragraph, click the arrows for Before Paragraph and After Paragraph

  • Where does one set space after paragraph in the new Pages 5.0? It used to be under text in the Inspector in the previous version, but I just can't find it in this new version.

    Where does one set space after paragraph in the new Pages 5.0? It used to be under text in the Inspector in the previous version, but I just can't find it in this new version. Paragraphs seem to only be dealt with in styles, and the Formatting window for text doesn't seem to have the space after paragraph contrtol that the older Inspector had. What am I missing?

    Sorry I did this without looking:
    Side panel >Text > Style > Spacing > Turn the triangle > Before Paragraph/After Paragraph/
    This is the trouble with the Peeky Boo Contextual Interface that so many wiser heads than mine love to love.
    Peter

  • Paragraph styles all default to wrong character style

    So I set up a template and based all my character styles on my basic body copy. However, every new text box I create it defaults to the "character styles" to my section header color and sizing. I have to right click and "clear character styles" every single time. I've never had this happen before and cannot figure out how to fix it, it is such a PAIN!

    From your explanation, I suspect your use of Character Styles might need to be redirected to Paragraph Styles. But that is conjecture, so I apologize if I'm wrong. In any case, to solve your problem; with nothing selected, choose No Character Style in the Character Styles panel. That sets the default for new frames.

  • How do I use the find method to find multiple items in a single paragraph?

    I am desigining a script to find any instances where ctrl+b and ctrl+i are applied to body text and then replace those character format overrides with Italic or Bold chartag.  Here's what the script is supposed to do:
    put the find method in a while loop that searches for character format overrides.
    If a character format override is found, pass the text range returned by the find method and the CharPropsChange flag to the GetTextForRange method.
    Use a boolean compare between the idata of the text item to the character angle and character weight constants.
    Whichever boolean evaluates to true, then use the SetTextProp method to set properties of the text range to the properties of the italic or bold character tag.
    This script does work on the first character format override found however it ignores any other overrides in the same paragraph. The cause of this is that the while loop updates the text loc that the find method uses to the next paragraph in flow. I suspect that i need to add an inner loop that goes through all the text in a single paragraph, where at teach iteration the text loc used by the find method is based on the same paragraph but the offset is modified. I am just not sure how to do that.
    function removeOverrides (pDoc)
        var vDocStart = pDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
        var vBoldFmt=getCharFmt (pDoc, 'Bold')
        var vItalicFmt=getCharFmt (pDoc, 'Italic')
        initFA_errno ();
        while (FA_errno==Constants.FE_Success)
            var vTextLoc = new TextLoc(vDocStart,0);
            var vFindParams=findOverrideParams (pDoc);
            var vTextRange=pDoc.Find(vTextLoc,vFindParams);
            if (vTextRange.beg.obj.ObjectValid())
                var vTextItems=pDoc.GetTextForRange (vTextRange, Constants.FTI_CharPropsChange)
                if (vTextItems.length==!0 )
                    if (vTextItems[0].idata==Constants.FTF_WEIGHT)
                       pDoc.SetTextProps (vTextRange, vBoldFmt.GetProps())
                    if (vTextItems[0].idata==Constants.FTF_ANGLE)
                       pDoc.SetTextProps (vTextRange, vItalicFmt.GetProps())
                    } else (Log (vLogFileName, '\nERROR: No items were found in the text format array but format override was found: '+pDoc.Name))
            vDocStart=vDocStart.NextPgfInFlow;
    function findOverrideParams (pDoc)
        var vFindParams = AllocatePropVals(1);
        vFindParams[0].propIdent.num = Constants.FS_FindObject;
        vFindParams[0].propVal.valType = Constants.FT_Integer;
        vFindParams[0].propVal.ival = Constants.FV_FindCharacterFormatOverride;
       return vFindParams;

    Hi Rick,
    Well, following up on the previous posting, I actually did figure out how to make it work but it seems rather inefficient. I can insert a new paragraph right after the paragraph that has the table anchor but when i cut the table, i also cut the paragraph i just created. So to get around that, I create two paragraphs, so that there will be one paragraph left after i do the cut and that is the paragraph that I paste the table into. Once the table is pasted into the new paragraph, I delete the other paragraph that I created.
    Here's the updated code from the for loop:
    var vTbl = vDoc.GetUniqueObject(Constants.FO_Tbl, vTextItems[i].obj.Unique);                 
    var vAnchorPgf=vDoc.NewSeriesPgf (vTbl.TextLoc.obj)      
    var vAnchorPgf2=vDoc.NewSeriesPgf (vAnchorPgf);        
    var vAnchorTextLoc=new TextLoc (vAnchorPgf2, 0);             
    var vTblTextRange=new TextRange ();        
    vTblTextRange.beg.obj=vTbl.TextLoc.obj;       
    vTblTextRange.beg.offset = vTbl.TextLoc.offset;        
    vTblTextRange.end.obj=vTbl.TextLoc.obj;        
    vTblTextRange.end.offset = Constants.FV_OBJ_END_OFFSET                 
    vDoc.TextSelection=vTblTextRange;        
    vDoc.Cut (0);                
    vTblTextRange.beg.obj=vAnchorTextLoc.obj;        
    vTblTextRange.beg.offset = 0;              
    vTblTextRange.end.obj=vAnchorTextLoc.obj;       
    vTblTextRange.end.offset =0;                 
    vDoc.TextSelection=vTblTextRange;       
    vDoc.Paste (0);                   
    vAnchorPgf2.Delete();        

  • On some pages the text from more than one paragraph stack up on top of each other, like writing something then writing something else on top of it.

    On some pages the text from more than one paragraph stack up on top of each other, like writing something then writing something else over the top of it. Some pages will run text and pictures together, like a car rear-ending another or a train pile up. Other pages will cut an image or text short, i.e. it will display a portion of the top of the image or text but not the rest. This happens on Amazon for example, the section where it says "Customers who looked at this also looked at" will allow only a certain amount of the upper portion of the description immediately below the picture of the product but below that section everything is fine until I get to another section displaying more products and their descriptions and then it cuts the bottom portions off again. I've noticed this behavior mostly in the sections with product photos, the text sections seem okay. YouTube also displays this behavior. It's even doing it on this page right now. Below this box I can read "The more information you can provide the better chance your question will be answered " , but directly below that in the next sentence I can see the start of it with "Troublshootin" and the "Automatically Add" in a green field covering the "g". The next clear text is "A window will open in the top corner. Click Allow, and then click Install. If the automated way doesn't work, try these manual steps." I tried turning of pre-fetching, clearing history, cookies, and cache, scanning for malware with Avast and Windows Defender all to no avail. It began when I upgraded from dial up to DSL via AT&T Uverse. I have a Motorola NVG510 modem. The modem was replaced an hour ago along with new dedicated lines and DSL/Phone splitter from the box by an AT&T technician to make sure my incoming lines were up to par. He ran a connection test and verified everything is up to standards. IE does not display this behavior. I am running Firefox20.0.1 and all previous versions have acted the same way since I upgraded to DSL about 3 months ago.

    If you have increased the minimum font size then try the default setting "none" in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
    It is better not to increase the minimum font size, but use an extension to set the default page zoom to prevent issues with text not being displayed properly.
    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • Expanding text fields in a paragraph

    Is it possible to have a text field sit within other text and expand horizontally to allow for entered data and the surrounding text also moves depending on how much data is entered (like in a paragraph)? Similar to entering text in to a Word form.

    Or are you talking about an editable floating field, maybe this blog will help http://blogs.adobe.com/formfeed/2010/09/editable-floating-fields-v3.html

  • Photoshop CC: Copy CSS doesn't work when text is styled as paragraph

    I'm using the most recent version of photoshop, CC-14.0, on a Mac running OSX 10.8.4
    I'm finding that the "copy css" function does not work if a paragraph is styled with a custom paragraph style. In other words any text that is not styled as "basic paragraph" or "basic paragraph+".
    I can copy css from a text block with a custom paragraph style, but the css is wrong. It doesn't reflect the attributes I have set up in my custom paragraph style. Instead it writes out the default "basic paragraph" style. If I copy the css from a text block styled as "basic paragraph+" it writes the css correctly.
    This is disappointing because it defeats the purpose of being able to create paragraph and character styles (like in InDesign).
    This is a bug or oversight, right? Is there a reason why it should work this way?

    14.0 is not latest version.  Click Help/updates

  • Cross Reference paragraphs from Word to imbedded Visio document

    I have a word document with about 200 steps included which are cross referenced throughout Word.  I have a Visio flowchart that serves as a visual picture of these steps, but requires manual input and adjustment when we adjust the steps in Word. 
    I don't want to use the hyperlink, I'd rather have a cross reference that will auto update the step number only to match the Word paragraph number.  If I could incorporate cross references from the text in the Visio file objects to the paragraph numbers
    in Word, this would save many hours at my organization.  Additionally, this is Visio Professional 2007 as I couldn't find a forum for 2007, only 2010.  I've searched many forums, but haven't come across any successful answer.  PLEASE HELP MICROSOFT!

    When I've used hyperlinks, I've always tied them to bookmarks in the word document. I haven't heard of a cross-reference between the two products.
    al
    Al Edlund Visio MVP

  • Cross reference that diplays only paragraph number

    I need to create cross-references to numbered paragraphs. The auto number for the paragraphs includes not only a number, but a text character that is part of the number format. For example, a numbered list like 1) 2) 3) and so forth, where the cross reference display only the 1, 2, or 3, and not the closing paren.
    FrameMaker has a building block <paranumonly> which ignores any characters other than digits in the auto number. InDesign doesn't seem to be able to do that. That is why I'm posting on the scripting forum. Perhaps there is a script that can do this?

    In support of Niels' response, I'd written almost the same thing, but 1.__AG__,  entered a more objective response (well put, AG!)  before I sent my impressions.
    I agree with Niels that
    The reader might appreciate a more direct numbering system (the milspec standard of 1.2.2.2.2.1 would be the equivalent section to your 1B2b2a example
    The tags used would be easier to navigate if they used a 1List 2List 3List convention, and that the punctuation used in numbering is a bit confounding at first glance
    The xref format is straightforward if all levels are displayed at that point
    Sadly, and as always, we can help with everything but the politics of your situation!
    I do like Niels' suggestion of using the Running H/F to display the current section, if you're forced to use the numbering scheme as-is!
    Best of luck navigating this with the powers that be.
    -Matt

  • Cross Reference, Paragraph Style conflict?

    I'm created an epub file and have a cross reference for one of my chapter titles. When I export it to ADE the final product has the cross reference in the file but the paragraph style for the text that I linked lost all of it's styling somehow. The paragraph style is supposed to be centered and have space after it but it is completely gone but the code is still in the xhtml file.
    I have opened the xhtml file and cannot see where the issue is. Has anyone else had this problem exporting from CS4? If so, how do you fix it?
    Thank you so much!

    According to the FM7 Help, the variables for background text frame use might be:
    <$paranumonly[paratag]>
    to pick up the first instance on a page, and
    <$paranumonly[+,paratag]>
    to pick up the last.
    The "+," bit is the key. I've never tried it myself.
    This presumably also assumes that the paras of interest all have the same format name.

  • Text wrap for a paragraph: How to define the width of a Text box /  active text area? I simply need a longish text to wrap within the frame!

    Hello, I've been searching for a good while in the forums now, but have found no solution or real mention of the problem – I hope some of you can help.
    I want to very simply layout a text between scenes, a slightly longer text that wraps within the frame margins. Here's an example of how I want it to look:
    Now, I couldn't for the life of me get the Custom Text to behave like that, as there are no parameters to set for the width of the text area. The Text Size, yes, along with the Tracking, Baseline and all that, but the width of the text box, no. The above was created by customizing one of the other Text Generator presets that happened to be left aligned.
    However, this preset has a fade in/fade out transition, which I do not want. There's no way to remove this transition as it seems integrated into the Text Generator (meaning they are not really presets, but separate kinds of Text objects? Very silly.)
    So I am asking you: Is there any way to get the Custom Text generator to behave like that? Just a text paragraph as above. Below you'll see all I can manage with the diffferent Custom Text parameters. Any kind of repositioning and resizing of the text just changes the position and size of the frame – but the actual text items are just cropped off where they extend out of that frame. Apparently the bounding box for the text is just some default length, and I can't find any way to adjust the width. See below my different attempts.
    The same text pasted into a Custom Text generator clearly extends outside the frame:
    Here Transform just moves – or resizes – the video frame that the Text Box exists inside:
    The Crop gives similar results, and of course Distort doesn't get me closer to what I need, either. There should be simply a Text Box Width parameter to set somewhere, but if it exists they have hidden it very well. How do you do it?
    Thanks for any help, this is a silly problem, but one of now many trivial problems that amount to me growing quite dissatisfied with FCPX. Hopefully I've just overlooked something.
    All the best,
    Thomas

    Thomas...same kind of crap here.
    I used Custom Text - entered a sentence, hit return, entered another.
    Set to 72 pt.
    The default alignment is centred - I want left aligned text...the text start point stays at the centre of frame and the sentence runs off the edge of the bounding box.
    There is no settings in the Text or Title inspector dialog to correct that!
    Using Transform will not sort it!

  • Is it true that keep options is not working with paragraph span? (CS5)

    Hi all,
    Just wanted to confiem that keep options does not work with Paragraph span.
    thanks,
    shlomit

    That's correct for now. Perhaps in CS6....

Maybe you are looking for

  • Error in index while transporting the request

    hi error : R3TRTABLBSIS REPAIRING TABLE IN THIS SYSTEM(PROD) plz giv me some idea to avoid this. reply me asap. regards satya

  • Does Yosemite boot up differently with filevault turned on

    Can anyone confirm to me if having FileVault turned on causes Yosemite to boot up differently to when FileVault is turned off? When I first set up my MacBook I enabled FileVault, and my usual boot and log in procedure consisted of; My user name and p

  • How to open StickiesDatabase in my PC?

    My Imac died. I have the backup of several files. The most important of which is StickiesDatabase -- the file that saves all post its. As I only have PCs, does anyone know how to open them in Windows 7? I tried to open it with notepad in my pc, but t

  • SRM Initial Load

    Hi Experts,       I am doing an initial load from ECC to SRM. The middleware parameters have been configured according to the OSS msg 720819. I start the load using R3AS for object DNL_CUST_PROD0. In R3AM1, I see the status as waiting and the BLOCK s

  • Does a CQC really need a separate thread/event queue per instance?

    Does a ContinousQueryCache really need a separate thread/event queue per instance? Is it possible to get multiple cqc's to share a single event queue?