• 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
Mac vs unix Carriage returns on a text file format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mac vs unix Carriage returns on a text file format


  • Subject: Mac vs unix Carriage returns on a text file format
  • From: Dan Doughtie <email@hidden>
  • Date: Thu, 31 Mar 2005 13:08:53 -0500

Title: Mac vs unix Carriage returns on a text file format
I ported over a script from OS 9 to OS X and had to do some major renovations because the original used Dialog Director.

Essentially the script grabbed data and put it into a fixed file format that an interface inserted the data into a Sybase database.

Here’s where the challenge is. The carriage returns are not being read by the interface properly. I’ve forced all returns to Ascii 10 and ascii 13. No luck. I can open the file in BBEdit and looks perfect. If I tell Bbedit to save the file with Mac Carriage Returns then it works perfect.
Without that then it has problems parsing the data.

Is there any syntax to save a text file through the Finder and tell it to save it as Mac linefeeds? Or will I have to open it in a scriptable app and let the app do it?

Dan
--

Dan Doughtie
Business Analyst
Morris Technology Services
706-823-3464
AIM: MTSDanD

Nothing contained in this e-mail is intended to be an offer to commit Morris Communications Company to any purchase, sale, contract or other course of action.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mac vs unix Carriage returns on a text file format
      • From: Dennis Jones <email@hidden>
    • Re: Mac vs unix Carriage returns on a text file format
      • From: Adam Wuellner <email@hidden>
  • Prev by Date: Re: How to make AppleScript wait for FileMaker to complete a script?
  • Next by Date: Re: Mac vs unix Carriage returns on a text file format
  • Previous by thread: Re: How to make AppleScript wait for FileMaker to complete a script? SOLVED
  • Next by thread: Re: Mac vs unix Carriage returns on a text file format
  • Index(es):
    • Date
    • Thread