• 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: quoted escaped form of *&)%:""/
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quoted escaped form of *&)%:""/


  • Subject: Re: quoted escaped form of *&)%:""/
  • From: Eric Geoffroy <email@hidden>
  • Date: Thu, 20 Jan 2005 16:47:44 -0800

Dear self,

I figured something else out. If I point the same "do shell script" at a file containing the same garbled text. It works.
do shell script "awk -F \":\" '{ for (i=1; i<=NF; i++){ if ($i ~ \"@\" ){ print $5}}}'" & " ~/Desktop/junkawk.txt"

So, it's the echo part that's fouling it up.
Aha! The echo needs double quote marks around the argument like-
echo "Hello."

But! if I put my variable garbage in quotes, then ascript treats it as literal text. So you have to add a double quote to the beginning and end of garbage. How about--

"
\"garbage"\"
Nope. Try "echo " & "\" " & garbage & "\" "
EUREKA!!

Thanks brain. I guess I'm learning something.

 _______________________________________________
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: quoted escaped form of *&)%:""/
      • From: Martin Orpen <email@hidden>
References: 
 >quoted escaped form of *&)%:""/ (From: Eric Geoffroy <email@hidden>)

  • Prev by Date: Re: Internet Connect Script
  • Next by Date: Re: quoted escaped form of *&)%:""/
  • Previous by thread: quoted escaped form of *&)%:""/
  • Next by thread: Re: quoted escaped form of *&)%:""/
  • Index(es):
    • Date
    • Thread