• 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: Ascii number of return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ascii number of return


  • Subject: Re: Ascii number of return
  • From: Yvan KOENIG <email@hidden>
  • Date: Fri, 23 Oct 2009 18:06:07 +0200

As I don't like too complicate my life too much, I use a simple tip

on run
set theRawText to read file xyz
set liste to paragraphs of theRawText
set theNormalizedText to my recolle(theRawText,return)
-- now, I know what is the used paragraph delimiter.
end run

--=====

on recolle(l, d)
local t
set AppleScript's text item delimiters to d
set t to l as text
set AppleScript's text item delimiters to ""
return t
end recolle

--=====

Is it a clean way, I don't know. But it made my life easier.

Yvan KOENIG (VALLAURIS, France) vendredi 23 octobre 2009 18:04:45


 _______________________________________________
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

  • Follow-Ups:
    • Re: Ascii number of return
      • From: LuKreme <email@hidden>
References: 
 >Re: Ascii number of return (From: Shane Stanley <email@hidden>)
 >Re: Ascii number of return (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Ascii number of return
  • Next by Date: scripting QT7 Pro to export (or print?) frames as PDFs?
  • Previous by thread: Re: Ascii number of return
  • Next by thread: Re: Ascii number of return
  • Index(es):
    • Date
    • Thread