Mac or UNIX file
Mac or UNIX file
- Subject: Mac or UNIX file
- From: Chris Swain <email@hidden>
- Date: Tue, 5 Dec 2006 20:52:51 +0000
I have a script that reads a very large file into a list, adds data to each item in the list then saves it.
The problem I have is that sometimes the file has UNIX line endings other times Mac, and if it is a Mac file I need to save it as a Mac file and vice versa.
I have written two versions of the script one to deal with each, but I can't see how I might combine them such that I detect the line endings and then call the appropriate version, I don't want to spend time reading in the file incorrectly.
Any thoughts,
TIA
Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden