Re: \"hyphenate\"
Re: \"hyphenate\"
- Subject: Re: \"hyphenate\"
- From: Roger Howard <email@hidden>
- Date: Wed, 24 Nov 2004 09:33:52 -0800
Wayne, simply reaading the text file into a variable, and then writing
right back to a file, should result in a perfect copy (at least in this
instance). The only place you'll see the quotes escaped with
backslashes is in the Script Editor.
For instance:
set SourceData to read (choose file)
set OutFile to choose file name
writeData(SourceData, OutFile)
I excluded the writeData handler, but it's just standard file writing
code.
This script takes the contents - quoted included - from one file, and
writes it to a new file. The quotes are not escaped with backslashes
unless you're looking at it in the Script Editor (logging, for
instance).
-R
On Nov 24, 2004, at 7:57 AM, waynemelrose wrote:
i have a text file with the contents
"hello there"
I want to get that as a variable, that i can then write BACK to a
different text file as "hello there" without the "\"
so, how do i read a file, and get just the text "hello there" with
hypenation.
On Nov 24, 2004, at 4:19 PM, Martin Orpen wrote:
on 24/11/04 2:50 pm, wayne melrose wrote:
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..
I don't understand your problem :-(
Using 'quoted form of' means that you get both a dialogue box that
says
"hello there" and a text file which matches identically: "hello there"
<scratches head> I thought that that was what you wanted?
-- 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:
email@hidden
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:
email@hidden
This email sent to email@hidden
roger howard
email & im @ <email@hidden>
website @ <http://www.rogerroger.org>
photos @ <http://www.rogerroger.org/gallery>
_______________________________________________
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