Re: quoted escaped form of *&)%:""/
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