Re: \"hyphenate\"
Re: \"hyphenate\"
- Subject: Re: \"hyphenate\"
- From: wayne melrose <email@hidden>
- Date: Wed, 24 Nov 2004 15:50:16 +0100
thanks Martin,
although my problem is that the text is being read this way.. as in
"hello there" becomes \"hello there\"
so essentially my problem is when it reads... not writes..
On Nov 24, 2004, at 3:47 PM, Martin Orpen wrote:
on 24/11/04 2:33 pm, wayne melrose wrote:
here's something I'm curious about..
set mytext to "\"hello there\""
display dialog mytext
do shell script "echo " & mytext & " > ~/Desktop/hello.txt"
OK, now when the dialog displays, its obviously hyphenated, which is fine, but the text file also obviously is NOT as the "\" comments OUT the hypenation..
So, assume that mytext is being read from a text file (ie set mytext to read file "folder:text.txt") and the result is "\"hello there\"" because there was a hyphenation, how do i make it write back into hello.txt in the same way.. ?
You ‘quote’ mytext when doing the shell script:
do shell script "echo " & quoted form mytext & " > ~/Desktop/hello.txt"
As sending quotes and pipes etc etc to the command line is a little risky
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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
_______________________________________________
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