• 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
Re: Delimit a File Containing Both Returns and Line Feeds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Delimit a File Containing Both Returns and Line Feeds (From: Thomas Maffucci <email@hidden>)

  • Prev by Date: Delimit a File Containing Both Returns and Line Feeds
  • Next by Date: Delimit a File Containing Both Returns and Line Feeds
  • Previous by thread: Delimit a File Containing Both Returns and Line Feeds
  • Next by thread: Delimit a File Containing Both Returns and Line Feeds
  • Index(es):
    • Date
    • Thread