• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
BEST way to change 1 character in a file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Internet Dis/Connect script?
  • Next by Date: Re: Remote Access and Network Setup Scripting problems under OS 9.1 (and 9.2.1)
  • Previous by thread: Re: Internet Dis/Connect script?
  • Next by thread: Re: BEST way to change 1 character in a file?
  • Index(es):
    • Date
    • Thread