BEST way to change 1 character in a file?
BEST way to change 1 character in a file?
- Subject: BEST way to change 1 character in a file?
- From: "Nitz, Chris" <email@hidden>
- Date: Wed, 12 Feb 2003 16:01:44 -0800
- Thread-topic: applescript-users digest, Vol 3 #1332 - 17 msgs
Hi, List.
I am picking up some text and saving to a file, using URL Access Scripting.
When I save the file, I am discovering that the carriage returns are PC
returns (ascii character 10).
If I save the text using Internet Explorer, I get MAC returns (ascii character
13), which is what I want.
My first thought was to use a linear (character-by-character search) to find &
replace them, but there's a better way, I'm sure.
What is the fastest AppleScript way to make these PC carriage returns (in a
.txt file) become MAC returns (ascii character 13)?
Anyone have a fancy one-liner I could use for this?
Thanks in advance.
-Chris Nitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.