• 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: \"hyphenate\"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \"hyphenate\"


  • Subject: Re: \"hyphenate\"
  • From: waynemelrose <email@hidden>
  • Date: Wed, 24 Nov 2004 18:44:23 +0100

Roger and Martin,

thanks so much, I now have it sorted!

Wayne..


On Nov 24, 2004, at 6:33 PM, Roger Howard wrote:

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
References: 
 >Re: \"hyphenate\" (From: Martin Orpen <email@hidden>)
 >Re: \"hyphenate\" (From: waynemelrose <email@hidden>)
 >Re: \"hyphenate\" (From: Roger Howard <email@hidden>)

  • Prev by Date: Re: \"hyphenate\"
  • Next by Date: Quark Facing Pages
  • Previous by thread: Re: \"hyphenate\"
  • Next by thread: Re: CRON
  • Index(es):
    • Date
    • Thread