Re: Delimit a File Containing Both Returns and Line Feeds
Re: Delimit a File Containing Both Returns and Line Feeds
- Subject: Re: Delimit a File Containing Both Returns and Line Feeds
- From: Deivy Petrescu <email@hidden>
- Date: Wed, 22 Aug 2018 18:16:18 -0400
> On Aug 22, 2018, at 18:06 , Thomas Maffucci <email@hidden> wrote:
>
> The objective of the following script to to go thru a given Folder of Text
> files
> and take each line containing text and make just one line of tabbed text
> (Which will later be inserted into an excel Spread Sheet). I have no problem
> with
> files containing Carriage returns or line feeds but have been unable to deal
> with files contain both. I have attached a folder containing one file with
> returns
> and one file containing returns and line feeds.
>
>
Thomas,
did you try paragraphs?
That is,
…
set Acctinfo to content of text object of selection
--display dialog ">>>" & Acctinfo & "<<<"
--close documents saving no
set pargph to paragraphs of Acctinfo
…
I assume paragraph will handle both cr and lr.
Deivy Petrescu
email@hidden
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden