• 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: ctrl m question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ctrl m question


  • Subject: Re: ctrl m question
  • From: Ian Ward Comfort <email@hidden>
  • Date: Fri, 1 Dec 2006 14:31:50 -0800

On Dec 1, 2006, at 2:04 PM, John C. Welch wrote:
Okay, so to create a ^M for an eol in the shell, you hit ctrl-v then ctrl-m.

What would be the best way to represent that in a do shell script command,
as "^M" is just two characters?

The "return" constant in AppleScript is actually ASCII character 13. So this:


set x to (do shell script "echo " & return & " | cat -v")
display dialog x

pops up a dialog reading ^M on my system.

—IWC

_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: ctrl m question
      • From: "Mark J. Reed" <email@hidden>
References: 
 >ctrl m question (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: awk question
  • Next by Date: Re: awk question
  • Previous by thread: ctrl m question
  • Next by thread: Re: ctrl m question
  • Index(es):
    • Date
    • Thread