Removing Paragraph

For my proje i want to remove a unwanted paragraph in a text file. For example my text file may have acknowledgment in between sum useful data so i want to remove the acknowledgment paragraph fully...can anyone tel how to do tat??
Am taking Text files from the folder it may have sum 30 files.Consider the papers like ieee if am having acknowledgement in between abstract and sum other topic i want to remove the acknowledgement In my previous thread i removed a line but considering paragraph, I dont know where to stop ..Here we cant expect all text files topic in this order in tat case how it comes.For example
Abstract
Test managers often need to make an initial estimate of the number of people
Acknowledgement
Some of the material in this paper was developed by the participants
Introduction
Past tester to developer ratios are often useful for making rough estimates of required test.

Sure. Samples:
Reading a line:
String line = bufferedReader.readLine();Reading the next line:
line = bufferedReader.readLine();HTH. Otherwise, I don't know what general "sample code" for your specific situation would be. Unless of course you want me to do your work for you.

Similar Messages

  • How to remove paragraph JEditorPane

    Hi,
    I am using JEditorPane with HTMLEditorKit. But problem is that, when i press the Enter key, a paragraph will created. I need to a line break when pressing Enter . Can anyone help me, how can i remove the paragraph and insert a simple line break. Also, when i press tab key, tab space can't show in editor...
    please help me..

    Berbato wrote:
    I need to remove paragraph breaks from selection of cells in my table and replace them with a space and a dot.
    Tried this and it did not work:
    =SUBSTITUTE(AH2,CHAR(10)," .")
    Did you read the error message returned by the app ?
    I also tried to use find and replace, but it didn't work either.
    I'm sure that you didn't inserted the correct value in the "Find/Search" field but I can't guess what was the one which you inserted ? .
    I selected the character to replace, Copy it then pasted it in the Find/Search field.
    Yvan KOENIG (VALLAURIS, France) jeudi 27 janvier 2011 17:46:44

  • Outlook Add-In invoke command 'remove paragraph formatting (CTRL-Q)'

    I want to invoke the Outlook command 'Remove Paragraph Formatting (CTRL+Q)' [1] programmatically at my Add-In. For instance is breaks the blue line on an e-mail reply. Is this possible? The command is not located at the CommandBar.
    Jens
    [1] CTRL+Q – This removes all paragraph-level formatting—weird indents, line spacing, extra spacing before and after the paragraphs, etc. Again, select the text, hold down your Control key and press the letter Q.

    Hi jfrederich,
    Base on my test, I found we could call ClearFormatting() method, then call
    ClearParagraphAllFormatting() method.
    d.Application.Selection.ClearFormatting();
    d.Application.Selection.ClearParagraphAllFormatting();
    Please try it and check whether this meet your requirement.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Hi Starain, that was my first try. It doesn't work. nothing happens. The blue line resists on the front of the selection.
    Jens

  • How to remove paragraph breaks from table cells?

    I need to remove paragraph breaks from selection of cells in my table and replace them with a space and a dot.
    Tried this and it did not work:
    =SUBSTITUTE(AH2,CHAR(10)," .")
    I also tried to use find and replace, but it didn't work either.
    Any ideas?

    Berbato wrote:
    I need to remove paragraph breaks from selection of cells in my table and replace them with a space and a dot.
    Tried this and it did not work:
    =SUBSTITUTE(AH2,CHAR(10)," .")
    Did you read the error message returned by the app ?
    I also tried to use find and replace, but it didn't work either.
    I'm sure that you didn't inserted the correct value in the "Find/Search" field but I can't guess what was the one which you inserted ? .
    I selected the character to replace, Copy it then pasted it in the Find/Search field.
    Yvan KOENIG (VALLAURIS, France) jeudi 27 janvier 2011 17:46:44

  • I'm trying to remove paragraph rules from paragraphs in an InDesign document, but cannot because it (incorrectly) says they're already turned off

    So, basically what a title says. I'm working on a document for my employer in which some of the formatting is already in place. As part of that formatting, InDesign is adding horizontal rules after every paragraph, and there are some paragraphs for which this would not be appropriate, particularly bulleted lists, so I'm attempting to remove them. Problem is, when I select the paragraphs and pull up the Paragraph Rules dialog, it claims that the horizontal rules area already turned off, and that I therefore cannot remove them. Does anyone know what's going on or how to fix it?

    Hi,
    Have you checked that the paragraph rule is not "Rule Below"? Rule above is switched off, but Rule below may well be on. Select it in the popup shown in your screenshot.
    Regards,
    Malcolm

  • I cannot get an InCopy script to remove paragraphs

    Here is my code: 
    myText = app.activeDocument.stories.item(0);
    for (var i = 8;i>0; i--){
    myText.paragraphs[i].remove(); }

    I cannot get an avi file to run on quicktime player
    AVI is a legacy file container type abandoned by it developer nearly a dozen years ago as being out dated. While this container is still supported by the QT X Player, the codecs used to compress the data stored in the AVI file may not be supported by the "closed" nature of this media player. You basically have three options at this point:
    Convert the AVI content to a more modern file container/compression format combination,
    Install and use the QT 7 Player which has an "open" architecture that allows the player to access additional codecs which may already be installed on your system for playback, or
    Use a third-party media player VLC that has its own built-in codec support which works independently from you systems's codec configuration for playback.
    It's up to you to decide which option is best for your particular needs here.

  • Changing font without changing size with paragraph stylesheet

    I need to change the font of many paragraphs without affecting different text sizes within the paragraphs.
    I have a huge document...45,000 phone listings/400 pages. Each business listing (as opposed to residential) has a unique text string after the phone number ( |||B ) which will eventually be deleted. I want to do a Find/Change on that text string and change the entire paragraph it's in to a different font without impacting the different font sizes within the paragraph. But when I try to set parameters for the stylesheet, I can't just change the font, I have to change the size also.
    Using a character stylesheet won't work, as it would only change the font of the text string itself.
    Is this impossible using style sheets? Can it be done with a script? I've never used InDesign scripts so I'd need detailed instructions if that's the answer. Or am I doomed to manually change the font on 3,100 paragraphs in my document?
    Thanks to all you keeners out there for any help you can offer.
    Patti

    P Spier wrote:
    I'm a little confused.
    Do you currently have paragraph styles defined? I would probably approach this by defining a paragraph style for the main listings. You can do that by selecting some type and holding the Alt (Opt) key while clicking the new style icon on the panel, or by selecting new style from the panel menu. That style should be what is applied to all the text to start.
    Define a second style for the business listings. You can base this on the first style, and change only the font. You don't need to enter a new size unless you wish to do so. Any attributes you don't change in the new style definition will be preserved, and will change to match the base style if you edit it.
    Do your find/change and in the change format dialog specify the new paragraph style, but leave the actual change field blank. This can be done a plain text search. You will need two passes, one to format the paragraphs, and one (with the change format field cleared) to remove the suffix.
    A GREP expression would probably work, too, but my GREP is rudimentary and I can't seem to find an expression to find |||B -- my attempt  was (.)|||B$ which I thought would find any character followed by |||B at the end of the paragraph, and I would replace with $1 to preserve the character before and delete the suffix at the same time as changing the format, but it's picking up all sorts of stuff in the middle of the paragraph, so I suspect the pipes have a special meaning.
    Character styles should be used to change only things that are special and need to be different from the standard paragraph definition, not for formatting the entire paragraph.
    Yes, I have paragraph styles defined. I used them, along with a bunch of other unique text strings, to create separate paragraphs of each type of info in each listing, and then style them. I then used the same search strings to remove the paragraph breaks (and the search strings) to put the listings back to together into a single paragraph (but you have to break the link to the style before you remove paragraph breaks or your text will reformat itself back to the style on the previous paragraph.
    The main problem is that I neglected to make a special find/change on the address and phone number to make them bold. Now I have 48,000 paragraphs (listings) with nothing but that |||B search string at the end of each of the business listings. And it took me two full work days just to get to this point, so I really don't want to go back to square one at this point.
    I know this is hard to describe and understand. I really appreciate your help though!!

  • Script to remove overrides

    Does anyone know of a script that can remove paragraph overrides from text that is selected with the Type tool?
    I have many paragraphs that have nested styles. InDesign does not implement the nested style untl I select the paragraph and Alt-click the style in the Paragraph Styles panel to remove the override. After that, the paragraph has the correct formatting.
    This is hugely time-consuming because I have to place many such paragraphs in a very long document.
    I don't want to remove overrides throughout the whole document, just those paragraphs that are selected. That way, I can place a bunch of text into InDesign, select the text and remove the overrides, before moving it into place on the layout.
    If anyone can help, it would be a tremendous relief to me.

    Harbs,
    Got a chance to try out your script this evening. I'm using InDesign CS5. I saved the script as a plain text file with a .jsx file extention, and put the script into the User folder inside the Scripts folder.
    It shows up in the InDesign Scripts panel. I tried using it by selecting a couple of paragraphs with overrides, and then clicking on the script in the Scripts panel. It didn't remove the overrides. These paragraphs have nested styles, so I thought that perhaps I need to remove the "OverrideType.PARAGRAPH_ONLY"
    The revised script looks like this:
    app.selection[0].clearOverrides;
    However, that didn't work either.
    What am I doing wrong that the script isn't working for me? I hope that you have a suggestion.

  • Find n replace pricing in paragraphs-

    OK, I have a rather large catalogue that used to be a QuarkXPress Job recently converted by plug-in and cleaned up. I now have the need to run thru this and make some changes. (Please bare in mind Im using CS2 so my find and change may NOT be up to this?) Here is an example of the contents of the price listed text frames…
    What I need to do is replace the last 2 prices with just the one e.g. '£00.00' in the black. I will then be moving the tab stop positions. Now the example above is NOT the best as my prices can be of varying length '£1.23', '£12.34' or '£123.45' so is there a way I can use find n change in the GUI or would script be better suited to this? I think I could do multi f&r to something unique then replace that but its going to be too time consuming. Is it possible to use any digit {n} times? In Quark I could have it include '£' and '.' in the definition of word then just remove the last word. I hope thats fairly clear if NOT let me know. Thanks in advance…

    Well, I had a little time to dig some further and this is almost there even if a little ugly…
    #target indesign
    function removePrices() {
         if (app.documents.length == 0) {
              alert('Please have an "InDesign" document open before running this script.');
              return;
         var docRef = app.activeDocument;
         // Just using a selected box to test
         with (docRef.selection[0]) {
              // Missout first n last paras
              for (var i = 1; i < paragraphs.length-1; i++) {
                   var a = paragraphs[i].contents.indexOf('£') + 1;
                   var b = paragraphs[i].contents.length-2;               
                   paragraphs[i].characters.itemByRange(a,b).remove()
                   paragraphs[i].words.lastItem().contents = '£00.00';               
              // No return at end of this one
              var a = paragraphs[i].contents.indexOf('£') + 1;
              var b = paragraphs[i].contents.length-1;          
              paragraphs[i].characters.itemByRange(a,b).remove();
              paragraphs[i].words.lastItem().contents = '£00.00';
              // Remove my last tab
              paragraphs.everyItem().tabStops.lastItem().remove();
              // Move my tabs and respace content
              paragraphs.everyItem().tabStops.lastItem().position = 77;
              This did NOT work but I was hardly surprised!!!
              paragraphs.everyItem().tabStops.lastItem().previousItem().position = 67;
              var c = paragraphs[1].tabStops.length-2;
              paragraphs.everyItem().tabStops.item(c).position = 67;
    removePrices();

  • How to merge two paragraphs in HTMLDocument on backspace?

    I am implementing a WYSIWYG HTML editor and am trying to override the backspace action so that the JEditorPane correctly backspaces from Paragraph 1 to Paragraph 2 when the caret is at the beginning of paragraph 2 (See example below).
    <div>Paragraph 1\n</div>
    <p>Paragraph 2\n</p>
    In the default action, pressing "backspace" once successfully removes the endline character at the end of paragraph 1, but fails structurally to merge the text in paragraph 2 to paragraph 1.
    I have been racking my brains to try to find a way to solve this problem and the best thing I can think of is:
    1) store text in paragraph 2 in a string (without endline).
    2) remove paragraph 2.
    3) insert copied text into end of paragraph 1 (before endline)
    This works fine - EXCEPT: the character attributes (i.e. bold, italics) in paragraph 2 are lost when you store the text to a string and paste into paragraph 1.
    Can anyone how I can structurally join paragraph elements? Are there methods in HTMLDocument I can use or override to accomplish this?
    Thanks.

    Add a key listener to the textpane and call this method for each key event... (note 1 bug exists where it still leaves the p-element in teh document structure. Working on that bug as we speak.
    Rob
    private void handleBSConsumtion(KeyEvent e, boolean bDoFake) {
    int currPos = m_jtpMainEP.getCaretPosition();
    Element pe = getHTMLDocument().getParagraphElement(currPos);
    if (pe.getName().equals("p") && currPos == pe.getStartOffset()) {
    e.consume();
    if (bDoFake) {
    Integer currentAlign = (Integer)pe.getAttributes().getAttribute(StyleConstants.Alignment);
    int contentStart = pe.getStartOffset();
    int contentEnd = pe.getEndOffset();
    if (currentAlign.intValue() == StyleConstants.ALIGN_LEFT) {
    try {
    //Revert to previous line.
    if (currPos == 0)
    return;
    Element prevPE = getHTMLDocument().getParagraphElement(currPos - 1);
    //Do not adjust text if we do not have a paragraph of text preceding this one.
    if (!prevPE.getName().equals("p"))
    return;
    String oldLineTxt = getHTMLDocument().getText(contentStart, contentEnd - contentStart);
    //Remove old paragraph tag.
    getHTMLDocument().remove(contentStart, (contentEnd - contentStart));
    getHTMLDocument().remove(prevPE.getStartOffset(), 1);
    if (!oldLineTxt.equals("")) {
    getHTMLDocument().insertString(prevPE.getEndOffset() - 1, oldLineTxt, null);
    m_jtpMainEP.setCaretPosition(prevPE.getEndOffset() - oldLineTxt.length());
    } catch (Exception exb) {
    System.out.println("ECEPTION IN BACKSPACE HANDLING");
    } else {
    //Force to left align.
    SimpleAttributeSet simpleattributeset = new SimpleAttributeSet();
    StyleConstants.setAlignment(simpleattributeset, StyleConstants.ALIGN_LEFT);
    getHTMLDocument().setParagraphAttributes(pe.getStartOffset(), pe.getEndOffset() - (pe.getStartOffset() + 1), simpleattributeset, false);
    }//End - If (bDoFake)
    }

  • How can i wrap text in Pages?

    Hello,
    I am having a hard time finding out exactly how I can "wrap" my text using Pages. I have the most recent version (updated 10/18). This is NOT an issue wrapping text around an object, just a matter of getting the text to wrap instead of hyphenating words from one line to another.
    Thank you!

    Nevermind!
    I figured out that by going to "more" on the formatting tab, you can check "remove paragraph hyphenation" and this will wrap the text.

  • Images, CSS and p Tags

    I have a site I recently launched with Contribute and Dreamweaver.  I am using CSS to control the alignment and spacing of images.
    The problem I'm having is that I get strange rendering from pages created in Contribute because, by default, it wants to put images that are inserted in pages with text inside paragraph tags (<p>).  Even if the image is on its own line, it is inserted in a <p> tag.  I've tried adjusting my CSS to accomodate this, but it doesn't solve the problem.
    Does anyone know how to insert an image without putting it inside a <p> tag, if there is text on the page?  (Inserting an image on the page by itself does not create a <p> tag.)
    The only workaround I've been able to find is inserting a horizontal rule, selecting the horizontal rule, inserting the image and then deleting the horizontal rule.  This works, but it's far from ideal.

    Thanks for the input.  I'm well aware of how to use CSS.  The focus of this discussion was really how to get images out of <p> tags, not how to write a bunch of extra CSS to undo what Contribute really shouldn't be doing to images.
    I am committed to use CSS on my site, but I am also committed to making that CSS easy to use, which mean working at tag and block levels as much as I can, rather than becoming "class happy".  I know I have to use classes to do the left and right alignment, but let me share a specific scenario where CSS shouldn't be used.
    I have an <h2> element that is the full width of my container.  Below that, I have a <p> element for my paragraph.  For my design, I want the paragraph to have 1em of padding.  Now, I want an image banner that is the full width of the container, so it can nest under the <h2> and be the same width.  If I insert the image in Contribute above the <p>, it puts that in a <p> tag.  Now, the image is too wide because it's trying to add padding around something that is already the full width of the page.  I can't add a rule to remove the padding from all images, because that would remove padding from images that need it also.
    I could write a custom CSS class to resolve this issue, but that takes time, adds to my CSS file size and gums up my dropdown menu with an unnecessary class that's only used to solve this one scenario.  Instead, it makes more sense to just break the image out of the paragraph tag and treat it as a block.
    This is an example of what I was trying to get Contribute to do.  I just needed the image tag as such, an image, not an image inside my paragraph padding rules.
    In this case "remove paragraph breaks" is the most logical choice, rather than writing a bunch of CSS to undo Contribute's quirks.

  • Action to export cells to rtf

    Not sure if this is possible but I am looking to create an action to save individual cells to rtf files maintaining formatting.
    Consider the following
    _EN
    _DE
    KEY_HELP
    Help
    Helfen
    KEY_ABOUT
    about
    über
    What I would like to do from the above is create 4 rtf files named
    KEY_HELP_EN
    KEY_HELP_DE
    KEY_ABOUT_EN
    KEY_ABOUT_DE
    And each should only contain the cell contents but crucially maintain the formatting.
    Is this possible with Numbers?
    If it isn't, would you know of some other software that can do this?

    Hello
    You can directly store NSData representing NSAttributedString in plist file by the following steps:
    a) create NSData by NSAttributedString's -RTFFromRange:documentAttributes:
    b) create NSDictionay for collection of key = label (NSString) and value = localised attributed string (NSData)
    c) create plist data by NSPropertyListSerialization's +dataWithPropertyList:format:options:error:
    d) creat plist file by NSData's -writeToFile:atomically:
    and restore NSAttributedString from NSData in plist file by the following steps:
    e) create NSDictionay from plist file by NSDictionary's +dictionaryWithContentsOfFile:
    f) get NSData (localised attributed string) for given key (label)
    g) create NSAttributedString from the NSData by NSAttributedString's -initWithData:options:documentAttributes:error:
    So I think you need only one plist file instead of 3K+ rtf files in order to store the given matrix data in spreadsheet.
    The applescript 1 below, which is a simple wrapper of ruby script using rubycocoa, will generate such plist file. First copy the target range in Numbers v2 spreadsheet into clipboard and then run the script and it will create a plist file named out.plist on desktop.
    Script is tested with Numbers 2.0.5 under OSX 10.6.5. I don't know whether it works with Numbers v3 or not. If Numbers v3 does copy rtf representation of the selected range to clipboard as Numbers v2 does, it likely will work. Otherwise not, for the script retrieves table data based upon text box structure in rtf in clipboard. As for 10.9, which I don't use myself, I implemented a code to switch ruby interpreter to v1.8 by specifying the full path under 10.9 because rubycocoa only works with ruby 1.8 and default ruby under 10.9 is reportedly ruby 2.0.
    --applescript 1
    set outfile to (path to desktop)'s POSIX path & "out.plist"
    considering numeric strings
        set |<10.9| to (system info)'s system version < "10.9"
    end considering
    if |<10.9| then
        set ruby to "/usr/bin/ruby"
    else
        set ruby to "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
    end if
    do shell script ruby & " <<'EOF' - " & outfile's quoted form & "
    # get table data from rtf in clipboard and create plist file representing the matrix such that
    #     key = row header ( cell [i, 0] ) + column header ( cell [0, j] )
    #     value = NSData representing cell [i, j]'s value as NSAttrubuted string (i, j > 0)
    # usage
    #     copy range of Numbers table, run this script
    #     and it will create plist file of dictionary with the following contents:
    #         key = row header ( cell [i, 0] ) + column header ( cell [0, j] )
    #         value = NSData representing cell [i, j]'s value as NSAttrubuted string (i, j > 0)
    #     where i, j are 0-based and relative to the origin of the selected range
    require 'osx/cocoa'
    include OSX
    def table_data_pboard_to_plist(plistf)
        #     string plistf : poisx path of resulting plist file
        # get rtf data from clipboard
        pb = NSPasteboard.generalPasteboard
        pbtype = pb.availableTypeFromArray(['public.rtf'])
        raise RuntimeError, %[rtf data not found in the clipboard] if pbtype == nil
        data = pb.dataForType(pbtype)
        # make mutable attributed string from rtf data
        mas = NSMutableAttributedString.alloc.objc_send(
            :initWithRTF, data,
            :documentAttributes, nil)
        # retrieve data from table in rtf
        tr = NSMakeRange(0, mas.length)
        i0 = 0
        aa, rr = [], []
        while tr.length > 0
            er = NSRange.new
            attr = mas.objc_send(
                :attribute, NSParagraphStyleAttributeName,
                :atIndex, tr.location,
                :longestEffectiveRange, er,
                :inRange, tr)
            tbks = attr.textBlocks.to_a
            if tbks.length > 0
                i = tbks[0].startingRow
                er1 = NSRange.new
                er1.length = er.length - 1
                er1.location = er.location
                d = mas.attributedSubstringFromRange(er1)            # remove trailing LF
                d.objc_send(
                    :removeAttribute, NSParagraphStyleAttributeName,
                    :range, NSMakeRange(0, d.length))                # remove paragraph style (especially text block structure)
                d.fixAttributesInRange(NSMakeRange(0, d.length))    # cleanup attributed string
                if i != i0
                    aa << rr
                    rr = [] << d
                    i0 = i
                else
                    rr << d
                end
            end
            tr = NSMakeRange(NSMaxRange(er), tr.length - er.length)
        end
        aa << rr if rr.length > 0
        # build hash
        hash = {}
        (1 .. aa.length - 1).each do |i|
            ki = aa[i][0].string.to_s
            next unless ki.length > 0
            (1 .. (aa[i].length) -1).each do |j|
                kj = aa[0][j].string.to_s
                next unless kj.length > 0
                k = ki + kj
                m = aa[i][j]
                v = m.objc_send(
                    :RTFFromRange, NSMakeRange(0, m.length),
                    :documentAttributes, nil)
                hash[k] = v
            end
        end
        # create and write plistdata
        err = OCObject.new
        plistdata = NSPropertyListSerialization.objc_send(
            :dataWithPropertyList, hash.to_ns,
            :format, NSPropertyListXMLFormat_v1_0,
            :options, 0,
            :error, err)
        plistdata.objc_send(
            :writeToFile, plistf,
            :atomically, false)   
    end
    # main
    raise ArgumentError, %[Usage: #{File.basename($0)} <output plist file>] unless ARGV.length == 1
    table_data_pboard_to_plist(ARGV[0])
    EOF
    -- end of applescript 1
    And, in case, the applescript 2 below is a sample code to retrieve attributed string from plist file. It will read the out.plist created by applescript 1 and write the out.rtf on desktop which simply shows the key = value pairs as rich text.
    -- applescript 2
    set infile to (path to desktop)'s POSIX path & "out.plist"
    set outfile to (path to desktop)'s POSIX path & "out.rtf"
    considering numeric strings
        set |<10.9| to (system info)'s system version < "10.9"
    end considering
    if |<10.9| then
        set ruby to "/usr/bin/ruby"
    else
        set ruby to "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
    end if
    do shell script ruby & " <<'EOF' - " & infile's quoted form & " " & outfile's quoted form & "
    require 'osx/cocoa'
    include OSX
    raise ArgumentError, %[Usage: #{File.basename($0)} <input plist file> <output rtf file>] unless ARGV.length == 2
    infile, outfile = ARGV
    plist = NSDictionary.dictionaryWithContentsOfFile(infile)
    mas = NSMutableAttributedString.alloc.init
    rs = NSAttributedString.alloc.initWithString(%[\\n\\n])
    opts = { NSDocumentTypeDocumentOption => NSRTFTextDocumentType }
    plist.allKeys.sort.each do |k|
        ak = NSAttributedString.alloc.initWithString(%[#{k} = ])
        mas.appendAttributedString(ak)
        data = plist.objectForKey(k)
        av = NSAttributedString.alloc.objc_send(
            :initWithData, data,
            :options, opts,
            :documentAttributes, nil,
            :error, nil)
        mas.appendAttributedString(av)
        mas.appendAttributedString(rs)
    end
    mas.fixAttributesInRange(NSMakeRange(0, mas.length))
    data = mas.objc_send(
        :RTFFromRange, NSMakeRange(0, mas.length),
        :documentAttributes, nil)
    data.objc_send(
        :writeToFile, outfile,
        :atomically, false)
    EOF
    --end of applescript 2
    Hope this may help,
    H

  • Muse 2014.1.1.6 Freezes on Save and Re-Opening Document

    I was editing and removing Paragraph Styles. Then I edited text with "local" styling (bolded and italicized type -- didn't see the need make a Character Style for that). I did a "Save." Then it freezes, will not close or quit. Force Quit necessary.
    After restarting Muse, it freezes opening this document.  I will have to rebuild all of my edits for 3rd time from previous build.
    Dialog Box:
    "Adobe Muse CC has encountered an error and will exit. Please report the last few actions you took leading up to this error to the Adobe Muse CC team.
    [TA/localAttributeValue] Error: Error
    #1023: Stack overflow occured.
    Please advise [email protected]
    Using Macintosh --- MacBook Pro (new), 16GB RAM, OS 10.9.4
    SUGGESTION:   PLEASE MAKE PREVIOUS VERSIONS OF MUSE AVAILABLE AS WORKAROUND TO HAVING MY APPLICATION CRASH!
    I WILL HAVE TO GO TO MY OLD COMPUTER AND BUILD THIS SITE PRE-2014 CC.

    Thanks Zak.
    I am redesigning pages and eliminating Paragraph Styles I no longer want to use. After removing Paragraph Styles (one-by-one replacing with new style) and other editing, Muse freezes upon “Save” and re-“Open”.
    Then I began editing older version of site on my older Mac computer running 10.6.8 and Muse 7.x and encountered same problem. I am able to re-Open document in Muse 7.x if I have not removed any Paragraph Style — so far.  Must be an error in my document.
    Any help on this is appreciated!   — Jim Hance
    Document attached.

  • Using CSS with Contribute

    I just stumbled upon a small hitch in my get-along.
    While trying to assign an alignment class in Contribute (that
    I had originally created in Dreamweaver) I discovered that I
    couldn't figure out how to accomplish this. I have already created
    a class and it's in the external style sheet, but I can't figure
    out how to associate the picture with the class so that text will
    flow around the image.
    help!
    thanks,
    Ron

    Thanks for the input.  I'm well aware of how to use CSS.  The focus of this discussion was really how to get images out of <p> tags, not how to write a bunch of extra CSS to undo what Contribute really shouldn't be doing to images.
    I am committed to use CSS on my site, but I am also committed to making that CSS easy to use, which mean working at tag and block levels as much as I can, rather than becoming "class happy".  I know I have to use classes to do the left and right alignment, but let me share a specific scenario where CSS shouldn't be used.
    I have an <h2> element that is the full width of my container.  Below that, I have a <p> element for my paragraph.  For my design, I want the paragraph to have 1em of padding.  Now, I want an image banner that is the full width of the container, so it can nest under the <h2> and be the same width.  If I insert the image in Contribute above the <p>, it puts that in a <p> tag.  Now, the image is too wide because it's trying to add padding around something that is already the full width of the page.  I can't add a rule to remove the padding from all images, because that would remove padding from images that need it also.
    I could write a custom CSS class to resolve this issue, but that takes time, adds to my CSS file size and gums up my dropdown menu with an unnecessary class that's only used to solve this one scenario.  Instead, it makes more sense to just break the image out of the paragraph tag and treat it as a block.
    This is an example of what I was trying to get Contribute to do.  I just needed the image tag as such, an image, not an image inside my paragraph padding rules.
    In this case "remove paragraph breaks" is the most logical choice, rather than writing a bunch of CSS to undo Contribute's quirks.

Maybe you are looking for