• 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: Escape Apostrophes in 'Do Shell Script'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Escape Apostrophes in 'Do Shell Script' (From: Jay Young <email@hidden>)

  • Prev by Date: Escape Apostrophes in 'Do Shell Script'
  • Next by Date: Re: Escape Apostrophes in 'Do Shell Script'
  • Previous by thread: Escape Apostrophes in 'Do Shell Script'
  • Next by thread: Re: Escape Apostrophes in 'Do Shell Script'
  • Index(es):
    • Date
    • Thread