Re: ctrl m question
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