• 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: do shell script - quotation marks problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script - quotation marks problem


  • Subject: Re: do shell script - quotation marks problem
  • From: Doug McNutt <email@hidden>
  • Date: Sat, 18 Dec 2004 10:58:14 -0700

At 18:43 +0100 12/18/04, Armin Egginger wrote:
>I want to send a do shell script by apple script and have a problem with the quotation marks
>
>only for example:
>do shell script " grep Volumename | cut -d "  " -fl"
>
>This doesn't function. The quotation marks between the d and -fl stop the compilation and gives an error back. Is it possible to send this kind of command by applescript? Any idea or solution?

You need to escape the secondary quotes.

Read  <http://developer.apple.com/technotes/tn2002/tn2065.html>
Look for the "quoted form of" command.

--

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
 _______________________________________________
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

References: 
 >do shell script - quotation marks problem (From: Armin Egginger <email@hidden>)

  • Prev by Date: do shell script - quotation marks problem
  • Next by Date: Re: do shell script - quotation marks problem
  • Previous by thread: do shell script - quotation marks problem
  • Next by thread: Re: do shell script - quotation marks problem
  • Index(es):
    • Date
    • Thread