| Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :) |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Nov 27, 2006
Posts: 440
![]() ![]() Mac Specs: Power Mac G5 Dual 1.8 GHz
|
I know there aren't 2 types of TXT files, one for OS X, one for Windows.
I know there's only one type of TXT. However, there is one little but quite significant difference between plain text files made in the two OSs: In Windows, line breaks are \r\n In OS X, they're \n As a result, while TXT files created in Windows will display correctly in OS X, TXT files created in OS X will be missing all the line breaks when opened in Windows. (Basically, all the text is displayed on 1 line.) So does anyone know of a way to convert all the \n to \r\n in a TXT? note: I am aware of pseudo-solutions, such as using other formats instead (such as DOC), which display the line breaks correctly in both OSs, but still, I'd rather be able to use TXT files between the 2 OSs. Cog 0.07 audio player - cogx.org AAC, AIFF, APE, FLAC, M4A, MP3, MPC, OGG, SHN, WAV, WV, tracker formats, VG music formats, cue sheets, M3U & PLS, Growl, Last.fm, Apple Remote Latest Nightly Build (0.08) (new interface!) - Got ideas? Report bugs? Last edited by remain; 06-28-2007 at 05:25 AM. |
| QUOTE Thanks | |
![]() Member Since: Nov 04, 2006
Location: twin cities, mn, usa
Posts: 8,800
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
that's odd...
i haven't noticed that, but probably because i go xp > os x pretty much all the time rather than the other way. certainly worth investigating! Please participate in our Member of the Month polls. Every vote counts! And remember to use the user reputation system! ["Dear Homer, I. O. U. one emergency donut. Signed, Homer." - Note by Homer Simpson] |
| QUOTE Thanks | |
![]() Member Since: Nov 27, 2006
Posts: 440
![]() ![]() Mac Specs: Power Mac G5 Dual 1.8 GHz
|
(I believe line breaks in RTFs are also OK between the 2 OSs; I know for sure it's the case with DOCs.) I set it to TXT mode because I don't want/need fancy shmancy formatting when I use TextEdit; I just want plain text. Characters, tabs, line breaks... that's all. Keeps the file size as small as possible too. Cog 0.07 audio player - cogx.org AAC, AIFF, APE, FLAC, M4A, MP3, MPC, OGG, SHN, WAV, WV, tracker formats, VG music formats, cue sheets, M3U & PLS, Growl, Last.fm, Apple Remote Latest Nightly Build (0.08) (new interface!) - Got ideas? Report bugs? |
||||
| QUOTE Thanks | |||||
![]() Member Since: Nov 04, 2006
Location: twin cities, mn, usa
Posts: 8,800
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
ah. not that that would be my issue, i use smultron on os x and textpad on windows. pretty sure they're both basic text only. i think i just must not have opened and os x native text docs on my work machine yet...
ooh! maybe i have some on the ext drive in my bag! i'll have to check. edit: nope. only music and image files. Please participate in our Member of the Month polls. Every vote counts! And remember to use the user reputation system! ["Dear Homer, I. O. U. one emergency donut. Signed, Homer." - Note by Homer Simpson] Last edited by eric; 06-28-2007 at 03:48 AM. |
| QUOTE Thanks | |
![]() Member Since: Jan 04, 2005
Location: Modesto, Ca.
Posts: 25,825
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: iMac C2D Late 2007 20" with 10.8.3, Macbook Santa Rosa 4GB Ram OSX 10.8.3
|
Give Textwrangler a try. It's free. |
| QUOTE Thanks | |
![]() Member Since: Jan 14, 2005
Location: St. Gallen, Switzerland
Posts: 1,973
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: iMac Core i5, iPad, iPhone 4
|
If you liked this post, consider using the Reputation System. |
| QUOTE Thanks | |
![]() Member Since: Nov 27, 2006
Posts: 440
![]() ![]() Mac Specs: Power Mac G5 Dual 1.8 GHz
|
TextWrangler seems to do the trick!
Just to make sure I'm not mistaken, I'm basically supposed do this to convert a OS X-made file's line breaks: -Open in TextWrangler -Save As -Click "Options..." at the bottom -Change "Line Breaks" from "Unix" to "DOS" -OK -Save Is this correct? BTW, is there a way to make it such that: -new files made by TextWrangler are "regular" TXT files (just like those made by TextEdit), and not the file kind "TextWrangler text file" (and with the TextWrangler document icon)? -new files made by TextWrangler have the ".txt" extensions by default? Thanks to all! Cog 0.07 audio player - cogx.org AAC, AIFF, APE, FLAC, M4A, MP3, MPC, OGG, SHN, WAV, WV, tracker formats, VG music formats, cue sheets, M3U & PLS, Growl, Last.fm, Apple Remote Latest Nightly Build (0.08) (new interface!) - Got ideas? Report bugs? Last edited by remain; 06-29-2007 at 11:20 PM. |
| QUOTE Thanks | |
![]() Member Since: Jan 04, 2005
Location: Modesto, Ca.
Posts: 25,825
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: iMac C2D Late 2007 20" with 10.8.3, Macbook Santa Rosa 4GB Ram OSX 10.8.3
|
Quote:
![]() dtravis7 was waiting to be sure it would work before saying more. Been so busy I have not even had the time to test it. Glad it works for you. |
|
| QUOTE Thanks | ||
![]() Member Since: Feb 13, 2005
Location: New Orleans, LA, USA
Posts: 1,186
![]() ![]() ![]() ![]() Mac Specs: 13" Macbook Pro 2.26Ghz Unibody 4G RAM 160G HDD Superdrive
|
This is also why I use command line utilities for both OS's, and this is something that goes back to the early days of all the UNIX's and the DOS world.
You'll note that if you use vi on a text file created by a Windows notepad, for example, will show ^M characters at each newline, while text files created by Mac OS X will look all goofy using windows notepad. Oddly enough, if you edit a text file created by Mac OS X with the "DOS" command line 'edit' command under Windows and just save it, it'll convert the newlines to what Windows expects with the rest of the Windows text editors. Over on the Mac side, TextEdit generally seems to handle text files properly regardless of where they are created, but vi will show those 'crlf' characters as a ^M, which is not a big deal, but annoying. The vi command line way I deal with this is: :%s/'control-v''control-m'// and they will be be converted to 'cr' (carriage return, not carriage return-linefeed) and when you save the file it'll be all well in the UNIX world. This is probably all confusing to non-UNIX geeks, but this is something I've had to deal with for the entire 20+ years I've been dealing with text between DOS and UNIX. It's real fun when you have thousands of text scripts that have to be ported across OSes and have to figure out what program can best be used to batch convert them all. |
| QUOTE Thanks | |
![]() Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 12" Apple PowerBook G4 (1.5GHz)
|
Quote:
In the same vein, you can have, for example, Photoshop JPEGS, Preview JPEGs, and GraphicConverter JPEGs, even though they are all the same format. Macs can assign the file types to different applications on a file-by-file basis, unlike PCs. You can, if you like, override this by using the "always open with" option; see the "How do I set a default app" link in my sig. Quote:
|
||
| QUOTE Thanks | |||
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| drag files from mac to windows on bootcamp | polskie | Running Windows (or anything else) on your Mac | 5 | 05-27-2009 07:57 AM |
| Running Windows on a Mac: A Switcher's Guide | UncSki1218 | Running Windows (or anything else) on your Mac | 80 | 06-10-2008 10:34 PM |
| iPod for Windows and Mac? | MacAddikt | iPod Hardware and Accessories | 12 | 03-31-2007 09:33 AM |
| Parallels - can't copy from Windows XP virtual machine and paste to Mac Pro | ithacalaw | Running Windows (or anything else) on your Mac | 5 | 10-22-2006 09:14 PM |
| Mac Users Get More ISP Choices | schweb | Apple Rumors and Reports | 1 | 03-06-2003 10:57 AM |
All times are GMT -4. The time now is 01:12 AM.
Powered by vBulletin