• 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: Return character
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return character


  • Subject: Re: Return character
  • From: "Marc K. Myers" <email@hidden>
  • Date: Thu, 18 Oct 2001 13:13:48 -0400
  • Organization: [very little]

> From: email@hidden
> Date: Thu, 18 Oct 2001 17:06:09 +0200
> To: email@hidden
> Subject: Return character
>
> Hi!
>
> How do I convert AppleScript return (unix ascii 13?) to HyperCard (classic app ascii 10 and ascii 13) return.

Is this what you need?

set theText to "paragraph 1
paragraph 2
paragraph 3"
set lf to ASCII character 13
set AppleScript's text item delimiters to {return}
set theText to text items of theText
set AppleScript's text item delimiters to {return & lf}
set theText to (theText as text)
set AppleScript's text item delimiters to {""}
theText

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[10/18/01 1:12:45 PM]


  • Prev by Date: Re: Return character
  • Next by Date: Re: bug or feature?
  • Previous by thread: Re: Return character
  • Next by thread: Re: Return character
  • Index(es):
    • Date
    • Thread