• 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
breaking on newline
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

breaking on newline


  • Subject: breaking on newline
  • From: email@hidden
  • Date: Wed, 31 Jul 2002 18:00:03 -0700

I know that I can use the AppleScript constant "return" to break on a
return. However, I need to break on newline, which is what TextEdit uses
for line endings.

All of this is on OS X.

I tried using "
" (with a return between the quotes), but it doesn't work at all.

I tried using "\n",and that works... the first time. However, when you
compile, it changes this to a quote with a return between. So the next time
you compile the script, it fails again.

While it would be nice to just have a newline constant (like we have
return), it'd be even better if there was a way I could do this with full
backwards-compatability.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: breaking on newline
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Poke a char; next question - insert item in list
  • Next by Date: Re: Mac OS X Finder views
  • Previous by thread: Re: Poke a char; next question - insert item in list
  • Next by thread: Re: breaking on newline
  • Index(es):
    • Date
    • Thread