• 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 code for pc return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ASCII code for pc return


  • Subject: Re: ASCII code for pc return
  • From: Bill Briggs <email@hidden>
  • Date: Fri, 22 Apr 2005 19:07:53 -0300

Title: Re: ASCII code for pc return
At 11:16 PM +0200 4/22/05, Stefan Eriksson wrote:
Creating some text in a script and wants to create "returns" in the code..

set part1 to "test"
set part2 to "test"

set part to part1 & (ASCII character of 13) & part2

-- Script countinues and saves part to a textfile

When looking at this in the textfile on the mac it seems to work just fine but when looking at the file from a PC it is in one long line...

Anyone have a clue how to do correct returns for PC on a mac ?

 Mac - CR - ASCII Char 13
 UNIX - LF - ASCII Char 10
 PC - CRLF (in that order)

Most of the good Mac text editors allow you to save as any of the above, and will switch line endings for you in a text file.

If you use a text editor from the command line on the Mac (vi, emacs, whatever) you'll find that it uses the UNIX line ending LF, not CR, so you have to be a bit careful if you are doing things that involve UNIX tools on the Mac.

- web
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >ASCII code for pc return (From: Stefan Eriksson <email@hidden>)

  • Prev by Date: Re: ASCII code for pc return
  • Next by Date: Re: ASCII code for pc return
  • Previous by thread: Re: ASCII code for pc return
  • Next by thread: Re: ASCII code for pc return
  • Index(es):
    • Date
    • Thread