• 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: 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

  • Follow-Ups:
    • Re: \"hyphenate\"
      • From: wayne melrose <email@hidden>
References: 
 >\"hyphenate\" (From: wayne melrose <email@hidden>)

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