Header in textedit?

is there a way to put a header on a document in textedit? or do i have to download another program to do so...? i have an essay to write and it would look a lot better if i didn't have to write in my name with a pen

TextEdit does have headers and footers, but they automatically default to file name and date in the header and page number in the footer. I highly recommend Pages ($79), Bean (free), or NeoOffice (free).
http://www.bean-osx.com/Bean.html
http://www.neooffice.org/neojava/en/index.php
Good luck!

Similar Messages

  • TextEdit: how to print page numbers w/o Header

    I see the option to check "print footer and header" in the print dialog box. Anyone know how to just be able to print the page numbers in TextEdit (without the Headers on each page)?
    Thanks in advance for any help with this!

    TextEdit is a relatively simple program, with limited options. As such, I doubt the "print headers and footers" options are easily customizable. Other word processors have the ability to manage headers and footers separately. If you've got Pages, or Word, or the free alternatives such as OpenOffice/NeoOffice then you can set up your documents to print just header or footer info with only page numbers.

  • Question about TextEdit. How do i add a custom header to a multipage document? For example, "Smith, page 2", "Smith, page 3', etc. I can do it in Microsoft Word, but cant figure out how in TextEdit.

    How do i add custom headers to a multipage document in TextEdit? i need to add a custom header in upper right of page, for example: "Smith, page 2", "Smith, page 3" etc.  The add header setting in Textedit file-print only adds date : time in upper right, with "Page 1 of 3" on bottom right.
    Thank you.

    It's just a text editor not a word processor.

  • L need help with textedit, I inserted a picture then the cursor went from small to the size of picture and l need to write a header next to the picture not at the bottom of it. can anyone help please?

    Can anyone tell me how to make cursor smaller after inserting picture so that l can add somethimg right next to it instead of bottom of picture. Meaning the next line is too low

    AFAIK, you can't. The nature of TextEdit is that it allows the picture to be treated as a character and adjusts the cursor size for that line.
    You need a app that supports transparent overlays.

  • How to refresh the textedit object in module pool

    Hi All,
    I would appreciate if anybody can solve my problem.
    Problem is i have created one TEXTEDIT and now when user clicks on the cancel button and come back to the screen the data which was previously entered is still coming up.
    Please tell me how to refresh the data in TEXTEDIT.

    actualy it is enough to do the following, assuming you have a container to put the textedit into it:
      DATA:  l_parent_container TYPE REF TO cl_gui_custom_container,
             l_obj_editor TYPE REF TO cl_gui_textedit, "make this a global variable
             l_text_table TYPE re_t_textline,
             l_itftext TYPE STANDARD TABLE OF tline,
             l_thead TYPE thead.
    l_parent_container = ... "your container
    move .... to l_thead...    "your text header to read or reread
    read text from SO10
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = l_thead-tdid "Text-ID
          language                = l_thead-tdspras "im_request-language?
          name                    = l_thead-tdname "TDIC Text-Name
          object                  = l_thead-tdobject "Texte: Anwendungsobjekt
        TABLES
          lines                   = l_itftext
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    convert itf text to stream text (SAPSCRIPT_DEMO_NOTE_EDITOR)
      CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
        TABLES
          itf_text    = l_itftext
          text_stream = l_text_table.
      IF l_obj_editor IS INITIAL.
        CREATE OBJECT l_obj_editor
            EXPORTING parent = l_parent_container. " Abstract Container for GUI Controls
      ENDIF.
    discard any previous changes
      l_obj_editor->set_textmodified_status( cl_gui_textedit=>false ).
    übertragen text in editor
      CALL METHOD l_obj_editor->set_text_as_stream
        EXPORTING
          text            = l_text_table
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2.

  • How to create a text editor, the one like header text in PO

    Dear Ones,
    My requirement is that I want to create a text editor for storing terms and condition plant wise.
    The editor should be the one like header text in PO. It can take end number of lines.
    I created the text object ('TERMS') in table ttxob and text for it in table ttxot.
    Also created text id ('L000' and 'L001') in table ttxid and text for it in table ttxit.
    Now using FM read_text, save_text and edit_text, I have written a program but it does not save the data.
    When I run the program initially it displays me blank, then I enter some data into it. Again when I come back it displays the data and also saves the edition. But if I close my session the data is gone.
    It means it is not actually saving the data in database. My code is as below:
    *& Report ZAK_TEXT_EDITOR
    REPORT zak_text_editor.
    DATA : head TYPE STANDARD TABLE OF thead WITH HEADER LINE,
           line TYPE STANDARD TABLE OF tline WITH HEADER LINE.
    DATA : tdname TYPE thead-tdname.
    SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-001.
    SELECTION-SCREEN : SKIP 1.
    PARAMETERS       : id TYPE thead-tdid OBLIGATORY
                               MATCHCODE OBJECT zak_textid.
    SELECTION-SCREEN : SKIP 1.
    SELECTION-SCREEN : END OF BLOCK blk.
    START-OF-SELECTION.
      CONCATENATE 'TERMS' id INTO tdname.
      head-tdobject   = 'TERMS'.
      head-tdname     = tdname.
      head-tdid       = id.
      head-tdspras    = sy-langu.
      head-tdlinesize = 132.
      APPEND head.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                        = sy-mandt
          id                            = id
          language                      = sy-langu
          name                          = tdname
          object                        = 'TERMS'
        ARCHIVE_HANDLE                = 0
        LOCAL_CAT                     = ' '
      IMPORTING
        HEADER                        =
        TABLES
          lines                         = line
       EXCEPTIONS
         id                            = 1
         language                      = 2
         name                          = 3
         not_found                     = 4
         object                        = 5
         reference_check               = 6
         wrong_access_to_archive       = 7
         OTHERS                        = 8.
      IF sy-subrc <> 0.
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            client                = sy-mandt
            header                = head
          INSERT                = ' '
          SAVEMODE_DIRECT       = ' '
          OWNER_SPECIFIED       = ' '
          LOCAL_CAT             = ' '
        IMPORTING
          FUNCTION              =
          NEWHEADER             =
          TABLES
            lines                 = line
         EXCEPTIONS
           id                    = 1
           language              = 2
           name                  = 3
           object                = 4
           OTHERS                = 5.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
      CALL FUNCTION 'EDIT_TEXT'
        EXPORTING
        DISPLAY             = ' '
        EDITOR_TITLE        = ' '
          header              = head
        PAGE                = ' '
        WINDOW              = ' '
          save                = 'X'
        LINE_EDITOR         = ' '
        CONTROL             = ' '
        PROGRAM             = ' '
        LOCAL_CAT           = ' '
      IMPORTING
        FUNCTION            =
        NEWHEADER           =
        RESULT              =
        TABLES
          lines               = line
       EXCEPTIONS
         id                  = 1
         language            = 2
         linesize            = 3
         name                = 4
         object              = 5
         textformat          = 6
         communication       = 7
         OTHERS              = 8.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

    CONSTANTS:
      line_length TYPE i VALUE 254.
    DATA: ok_code LIKE sy-ucomm.
    DATA:
    Create reference to the custom container
      custom_container TYPE REF TO cl_gui_custom_container,
    Create reference to the TextEdit control
      editor TYPE REF TO cl_gui_textedit,
      repid LIKE sy-repid.
    START-OF-SELECTION.
      SET SCREEN '100'.
          MODULE USER_COMMAND_0100 INPUT                                *
    MODULE user_command_0100 INPUT.
    CASE ok_code.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
    The TextEdit control should only be initialized the first time the
    PBO module executes
      IF editor IS INITIAL.
        repid = sy-repid.
      Create obejct for custom container
        CREATE OBJECT custom_container
          EXPORTING
            container_name              = 'MYCONTAINER1'
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            others                      = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      Create obejct for the TextEditor control
        CREATE OBJECT editor
          EXPORTING
             wordwrap_mode          =
                    cl_gui_textedit=>wordwrap_at_fixed_position
             wordwrap_position      = line_length
             wordwrap_to_linebreak_mode = cl_gui_textedit=>true
            parent                  = custom_container
          EXCEPTIONS
            error_cntl_create      = 1
            error_cntl_init        = 2
            error_cntl_link        = 3
            error_dp_create        = 4
            gui_type_not_supported = 5
            others                 = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT

  • Does Pages have the feature I am looking for?  Or does TextEdit (i hope so)

    hello! I was looking for a specific wordpad function, and was hoping that Apple's TextEdit program had such a feature.
    What I am looking for, is the ability to insert the equivalent of one of those little triangles that point to the right, indicating that there is expandable content if clicked (which would of course reveal the content underneath what followed the triangle, which would than be pointing downward). You know, very much like how you view a finder window in 'list view'.
    I would love to have those expandable/collapsable triangles for lists I set up in TesxtEdit. This function would also work well for writing paper outlines, or organizing information under various topic headings, so I could enter notes and content under each heading's dropdown area of text, and than collapse it to minimize the cluttering of my document.
    Does TextEdit have a feature that provides the same kind of result? If not, does anyone know of any program that has a feature like this? I currently have been employing TextEdit for my needs running Tiger, so please fill me in on any features that TextEdit under Leopard might have that would get me to my desired goal.
    Thanks!!!!!

    No, you are describing a form of Outlining that Pages does not do neither does TextEdit nor any other text editor I know of.
    OmniOutliner does however do this:
    http://www.omnigroup.com/applications/omnioutliner/pro/
    Pages' Outline feature does something similar but without the little rotating arrow.
    Peter

  • TA25361 I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addres

    I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addresses.

    I tried Peggy's List > Select All > Copy > Paste into an AW spreadsheet suggestion.
    In my case, pasting into the spreadsheet lost all text formatting (mostly text set to bold). The results of formulas were pasted, and checkboxes were pasted as "on" or "off". The DB did not contain any pop-up menus or radio buttons, but I expect they would transfer as a number showing the list position of the chosen item.
    Pasting the copied List view data into a Numbers table gave a result similar to that with AppleWorks. I selected B2 as the target cell (for top left cell of the pasted data) to avoid any effects of posting into a header row or column. Bold and regular text formatting looked the same as it had in AW's List view.
    Based on that, I'd slip the 'paste into an AppleWorks Spreadsheet step, and paste directly into a Numbers Table.
    Regards,
    Barry

  • Does TextEdit (or any other mac app) have the function I am looking for?

    hello! I was looking for a specific wordpad function, and was hoping that Apple's TextEdit program had such a feature.
    What I am looking for, is the ability to insert the equivalent of one of those little triangles that point to the right, indicating that there is expandable content if clicked (which would of course reveal the content underneath what followed the triangle, which would than be pointing downward). You know, very much like how you view a finder window in 'list view'.
    I would love to have those expandable/collapsable triangles for lists I set up in TesxtEdit. This function would also work well for writing paper outlines, or organizing information under various topic headings, so I could enter notes and content under each heading's dropdown area of text, and than collapse it to minimize the cluttering of my document.
    Does TextEdit have a feature that provides the same kind of result? If not, does anyone know of any program that has a feature like this? I currently have been employing TextEdit for my needs running Tiger, so please fill me in on any features that TextEdit under Leopard might have that would get me to my desired goal.
    Thanks!!!!!

    Any Outliner will do this.
    Omni Outliner Circus Ponies Notebook to name but two of very many. Search on MacUpdate
    Regards
    TD

  • Forum (+ features?) for TextEdit?

    Howdy all -
    a) I'm looking for the appropriate forum for asking questions about TextEdit. I used the community serach box for identifying the appropriate community, but it gave no results in response to "TextEdit" or "Text Edit".
    b) Is it possible to change defaults in TextEdit such as:
         i) size of new document window i.e. Zoom command;
         ii) %-zoom level;
         iii) # of recent documents in "File > Open Recent";
         iv) contents of header and footer?
    I live and die by TextEdit because it meets most simple word processing needs (e.g. for meeting notes, course notes, lists, ideas, citations, study guides etc); opens damnfast; generally avoids all issues of compatibility when it comes to collaborations; offers better non-English language support than either Pages or Word (specifically right-left language and bi-lingual text support, e.g. Arabic & English on the same line) etc. So I am not really interested in changing programs over these issues unless the suggested programs do all of the above equally well (or better) and are cheap / free (!! - don't want to waste anyone's time here :-D).
    I'm aware that one can create an application-specific shortcut for the % zoom-in found at the bottom-right corner [only visible in wrap-to-page mode] (> System Preferences > Keyboard > Keyboard Shortcuts > "+" > TextEdit > zoompercentage% > Desired Short).
    Similarly for the Zoom feature found under the Windows > Zoom (or the green circle in the upper right-hand size) it is possible to create an application-specific short cut; however, unlike its behaviour in other applications, it does not optimize the page for the % zoom-in selected. Rather, it optimizes the page size assuming one is working at 100%, only.
    [[[ Side note for those who wish the green circle maximized the page size (i.e. full screen) instead of optimizing it (i.e. as large as the content requires, up to full screen): in many applications, if you push option-click green circle, it'll maximize the window. This doesn't work in all applications though, e.g. TextEdit! (I've tried it in Chrome, Mail, iTunes, Safari etc. and it works in all of them) ]]]
    As for the other defaults mentioned, I haven't a clue. Any & all suggestions welcome and appreciated!
    c) Despite its relatively good bilingual support, I have a recurring issue with TextEdit when toggling between English and Arabic keyboards. Every once in a while, when I toggle back to English, it changes the font to Lucida Grande, despite the fact that I've set the default to Baskerville. This seems to happen if I modify any part of the text created with one keyboard while in the other keyboard setting (e.g. if I have too many spaces after the last Arabic word and use backspace on the English keyboard and then start typing, the font changes). Generally if I just switch between the two without ever making mistakes (!!) it doesn't happen (or at least not often).
    Any advice would be greatly appreciated (including where pre-existing TextEdit discussion might be found)!
    All the best,
    Rax

    So I think I have finally discovered possible solutions to all of these issues myself and just thought I would share it in case anyone else was interested. The solutions are posted under each cited question below:
    a) I'm looking for the appropriate forum for asking questions about TextEdit. I used the community serach box for identifying the appropriate community, but it gave no results in response to "TextEdit" or "Text Edit".
    Right - this is it.
    b) Is it possible to change defaults in TextEdit such as:
         i) size of new document window i.e. Zoom command;
    The default size of a window in TextEdit can be set under the TextEdit preferences for a new document (TextEdit > Preferences ... > New Document > Window Size). The potentially confusing / misleading units of "characters" for width and "lines" for height do not specify anything to do with the document settings, only the actual program window. Also note that you cannot (so far as I can tell) have default "Wrap to Page" selected at the same time.
         ii) %-zoom level;
    I did not find an alternative solution to the program-specific shortcut outlined in the question.
         iii) # of recent documents in "File > Open Recent";
    I found this one by complete accident - stumbling about System Preferences. Go to System Preferences > Appearance > Number of recent items, there there are drop-down menus for the number of recent Applications, Documents and Servers, up to 50. It is applied across the board. Am a little surprised no one on the forum suggested this!
    As for the header / footer info, I was not able to find any means of controlling that info - only how to turn it on/off in printing.
    Ultimately my solution for being able to open new TextEdit documents that are the appropriate size (i.e. easily readable & appropriate point size) was to deselect "wrap to page" default, set the appropriate window size for a document in 150% zoom as the default and set similar / related shortcuts for wrap-to-page & 150% zoom. Along with the increased recent docs menu - it means managing documents in TE is that much faster.
    If anyone has other ideas / solutions to these or any of the other issues mentioned in the first post, I'd still be very interested.

  • How to edit header & footer info that prints from Safari?

    I need to adjust what info is included in the headers & footers that print-out using Safari. For instance, only the time is printing in the header. I need the date to print instead. Can't t find anything in preferences. Thanks.

    Open the print dialogue and click Show Details. Under TextEdit there should be an option to print headers and footers. Uncheck it.

  • Problem: TextEdit and RTF

    Since a while TextEdit opens RTF documets as PLAIN TEXT and makes my life harder... what would be the solution?
    this is what I get to see when I try to open an RTF document created with TextEdit:
    "{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf440
    {\fonttbl\f0\fswiss\fcharset77 Helvetica;}
    {\colortbl;\red255\green255\blue255;}"
    that's the heading... sort of... what should I do to make it work again?

    I am having great difficulty opening a file in .rtf format on mail or any other applications. My only question is why? I am trying to receive posts via e-mail and it just does not work. Text edit (default opens a blank screen) with a flashing bar, and pages gives me a 200 page document which is empty of all pages.
    Help Please!!!

  • Clickable Link in TextEdit

    Can you make a URL in TextEdit Clickable
    With this Script there is no Clickable link. Did not see anything in the dictionary but thought some Shell Script or something.
    tell application "Safari"
    set myUrl to URL of front document
    set Toy to name of front document
    end tell
    tell application "TextEdit"
    if document 1 exists then
    set text of document 1 to text of document 1 & Toy & return & myUrl & return & "===============================" & return
    else
    make new document
    set text of document 1 to text of document 1 & Toy & return & myUrl & return & "===============================" & return
    end if
    end tell
    Made this for X-Mas Shopping but need to do some refining
    Thanks
    darock

    The way I would do this is to make an HTML document (Webpage) and use AppleScript to edit it. Here's how.
    First, run the following script to make the file.
    set mypath to (path to desktop) & "GiftList.html" as string
    set thefile to open for access file mypath with write permission
    write "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\">
    <head>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />
    <title>Xmas List</title>
    </head>
    <body>
    </body>
    </html>
    " to thefile
    close access thefile
    Set myPath where you want the file. Change the "Xmas List" text to the name of the document as you want it to appear in the title bar of Safari.
    Next, replace the entire TextEdit part of your script with the below (keep your Safari script above this).
    set giftPath to (path to desktop as string) & "GiftList.html"
    set giftFile to open for access file giftpath with write permission
    set giftText to read giftFile
    set oldD to AppleScript's text item delimiters as string
    set AppleScript's text item delimiters to "</body>" as string
    set bBody to first text item of giftText
    set aBody to return & "</body>" & return & second text item of giftText
    set AppleScript's text item delimiters to oldD as string
    set toAdd to "<p>" & Toy & "<br/>" & return & "<a href=\"" & myUrl & "\">Link</a>" & "<br/>" & return & "<hr/>" & return & "</p>"
    set eof of giftFile to 0
    write bBody & toAdd & aBody to giftFile
    close access giftFile&lt&
    Set giftPath to the path you used earlier (where you put the file you made).
    This will make a new paragraph with the text of your Toy variable. Then, on a new line, it will put a link to the site in your myUrl variable. It will also add a horizontal bar between toys.
    To add more items, just run the second script again. Added entries will appear below existing ones.
    Let me know if you have any questions or want help modifying this.
    Good luck!
    -Nate

  • Textutil html to rtf vs. TextEdit

    I have noticed what looks like a bug in either TextEdit of textutil, but not sure where it is. When I convert html to RTF using the textutil command, the resulting file opens in TextEdit with black text on a black background. It looks a lot like the Safari email creation bug they just fixed with 5.0.1 (yes, I installed it).
    Opening the resulting file in TexEdit Plus, Pages, OmniOutliner, Word, OpenOffice all display the file without the black background. I will be reporting it to AppleCare tomorrow.
    What I'm not sure about and thought I'd ask here is: do you think the RTF code output from textutil is wrong, or TextEdit is displaying the file incorrectly. Since all the other programs display it correctly, I am tempted to implicate TextEdit, but maybe they just ignore the "background" instruction that seems to be placed by textutil (see below).
    If i create a document in TextEdit and save to disk, I get the following code:
    {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf320
    {\fonttbl\f0\fswiss\fcharset0 Helvetica;}
    {\colortbl;\red255\green255\blue255;}
    \margl1440\margr1440\vieww9000\viewh8400\viewkind0
    \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx792 0\tx8640\ql\qnatural\pardirnatural
    \f0\fs24 \cf0 Hello World}
    If I create a barebones html document (see script below) and convert html to RTF using textutil, I get:
    {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf320
    {\fonttbl\f0\froman\fcharset0 Times-Roman;}
    {\colortbl;\red255\green255\blue255;}
    \deftab720
    {\*\background {\shp{\*\shpinst\shpleft0\shptop0\shpright0\shpbottom0\shpfhdr0\shpbxmargin\shp bymargin\shpwr0\shpwrk0\shpfblwtxt1\shpz0\shplid1025{\sp{\sn shapeType}{\sv 1}}{\sp{\sn fFlipH}{\sv 0}}{\sp{\sn fFlipV}{\sv 0}}{\sp{\sn fillColor}{\sv 0}}{\sp{\sn fFilled}{\sv 1}}{\sp{\sn lineWidth}{\sv 0}}{\sp{\sn fLine}{\sv 0}}{\sp{\sn bWMode}{\sv 9}}{\sp{\sn fBackground}{\sv 1}}}}}
    \pard\pardeftab720\ql\qnatural
    \f0\fs24 \cf0 Hello World}
    What seems to be the big difference is the "background" code -- If I remove it, all is well. It apparently specifies the background for the document, and in this case tells it to be a rectangular shape with various parameters, but if I try changing the shape or fill color it doesn't seem to make a difference.
    So I guess the question is why textutil is putting that code in there, and why it screws up TextEdit's display...
    (the spec for the parameters is here: http://www.biblioscape.com/rtf15_spec.htm )
    Here's an AppleScript that re-creates the problem:
    set oFile to "/Users/username/Desktop/oFile.html"
    set strHTML to "<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/></head><body>Hello World</body>"
    try
    set fDesc to open for access oFile with write permission
    write strHTML to fDesc as «class utf8»
    close access fDesc
    on error
    try
    close access fDesc
    return strText
    end try
    end try
    set strCommand to "textutil -convert rtf " & (quoted form of (POSIX path of oFile))
    set strResult to (do shell script strCommand)

    If you want to report this issue to Apple's engineering, send a bug report or an enhancement request via its Bug Reporter system. To do this, join the Mac Developer Program—it's free and available for all Mac users and gets you a look at some development software. Since you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report or enhancement request. The nice thing with this procedure is that you get a response and a follow-up number; thus, starting a dialog with engineering

  • Mysterious locked textedit file "~" keeps coming back

    Since a few days suddenly a TextEdit document appears at the top of my folder list on my HD. The file is called "~" and it's 2.5MB in size. I had to change the permissions to open it. The file contains a lot of text, mostly gibberish, but I also recognize a lot of stuff that's on my computer. I ran a virus check, but everything is fine. I threw the file away, but a few hours later it was back again. I'm not comfortable with the whole thing, as it feels like malware to me, even though I have no idea what malware would look like.
    Does this sound familiar to anyone?
    I'm working on a MacBook Pro (late 2013), MacOs 10.10.2
    Thank you for your help!
    Daniella

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    The test works on OS X 10.7 ("Lion") and later. I don't recommend running it on older versions of OS X. It will do no harm, but it won't do much good either.
    Don't be put off by the complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. As I wrote above, it changes nothing. It doesn't send or receive any data on the network. All it does is to generate a human-readable report on the state of the computer. That report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents to me or anyone else.
    You should be wondering whether you can believe me, and whether it's safe to run a program at the behest of a stranger. In general, no, it's not safe and I don't encourage it.
    In this case, however, there are a couple of ways for you to decide whether the program is safe without having to trust me. First, you can read it. Unlike an application that you download and click to run, it's transparent, so anyone with the necessary skill can verify what it does.
    You may not be able to understand the script yourself. But variations of it have been posted on this website thousands of times over a period of years. The site is hosted by Apple, which does not allow it to be used to distribute harmful software. Any one of the millions of registered users could have read the script and raised the alarm if it was harmful. Then I would not be here now and you would not be reading this message. See, for example, this discussion.
    Nevertheless, if you can't satisfy yourself that these instructions are safe, don't follow them. Ask for other options.
    4. Here's a general summary of what you need to do, if you choose to proceed:
    ☞ Copy a particular line of text to the Clipboard.
    ☞ Paste into the window of another application.
    ☞ Wait for the test to run. It usually takes a few minutes.
    ☞ Paste the results, which will have been copied automatically, back into a reply on this page.
    These are not specific instructions; just an overview. The details are in parts 7 and 8 of this comment. The sequence is: copy, paste, wait, paste again. You don't need to copy a second time.
    5. Try to test under conditions that reproduce the problem, as far as possible. For example, if the computer is sometimes, but not always, slow, run the test during a slowdown.
    You may have started up in "safe" mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    6. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    7. Load this linked web page (on the website "Pastebin.") The title of the page is "Diagnostic Test." Below the title is a text box headed by three small icons. The one on the right represents a clipboard. Click that icon to select the text, then copy it to the Clipboard on your computer by pressing the key combination command-C.
    If the text doesn't highlight when you click the icon, select it by triple-clicking anywhere inside the box. Don't select the whole page, just the text in the box.
    8. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Click anywhere in the Terminal window to activate it. Paste from the Clipboard into the window by pressing command-V, then press return. The text you pasted should vanish immediately.
    9. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
    exec bash
    and press return. Then paste the script again.
    10. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. If you don't know the password, or if you prefer not to enter it, just press return three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    11. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, a series of lines will appear in the Terminal window like this:
    [Process started]
            Part 1 of 8 done at … sec
            Part 8 of 8 done at … sec
            The test results are on the Clipboard.
            Please close this window.
    [Process completed]
    The intervals between parts won't be exactly equal, but they give a rough indication of progress. The total number of parts may be different from what's shown here.
    Wait for the final message "Process completed" to appear. If you don't see it within about ten minutes, the test probably won't complete in a reasonable time. In that case, press the key combination control-C or command-period to stop it and go to the next step. You'll have incomplete results, but still something.
    12. When the test is complete, or if you stopped it because it was taking too long, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    13. When you post the results, you might see an error message on the web page: "You have included content in your post that is not permitted," or "You are not authorized to post." That's a bug in the forum software. Please post the test results on Pastebin, then post a link here to the page you created.
    14. This is a public forum, and others may give you advice based on the results of the test. They speak for themselves, not for me. The test itself is harmless, but whatever else you're told to do may not be. For others who choose to run it, I don't recommend that you post the test results on this website unless I asked you to.
    Copyright © 2014, 2015 by Linc Davis. As the sole author of this work (including the referenced "Diagnostic Test"), I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

Maybe you are looking for