Re: Escape Apostrophes in 'Do Shell Script'
Re: Escape Apostrophes in 'Do Shell Script'
- Subject: Re: Escape Apostrophes in 'Do Shell Script'
- From: Laine Lee <email@hidden>
- Date: Wed, 05 Nov 2003 23:44:46 -0600
Could it be that in your successful construct a single quoted backslash
('\') escaped the apostrophe for the script command (that's the way it
seemed to work when I ran it in the terminal) and that the first backslash
of the adjacent pair of backslashes (\\) escaped the second backslash of the
adjacent pair for Applescript?
>
I did figure out something else too that did work with the example
>
above:
>
>
-------------------
>
set x to do shell script "perl -e 'print \"What'\\''s Up?\";'"
>
display dialog x
>
-------------------
>
>
--> What's Up?
>
>
but I'm not too thrilled with it (mainly because I'm not quite sure why
>
it works).
--
Laine Lee
email@hidden
http://lonestar.utsa.edu/llee
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.