Re: \"hyphenate\"
Re: \"hyphenate\"
- Subject: Re: \"hyphenate\"
- From: Martin Orpen <email@hidden>
- Date: Wed, 24 Nov 2004 14:47:21 +0000
Title: Re: \"hyphenate\"
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 of 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