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

Re: Shell Script's


  • Subject: Re: Shell Script's
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 09 Mar 2008 22:38:34 -0700
  • Thread-topic: Shell Script's

Since Unix shell scripts understand single 'quotes' as equivalent to double
quotes, and AppleScript does not need escaping of single quote (which are
just any old characters to AppleScript) why not use them?

    do shell script "xxxxxxxxxx 'xxx' xxxxx xxx xxx"


--
Paul Berkowitz


> From: Doug McNutt <email@hidden>
> Date: Sun, 9 Mar 2008 22:09:37 -0600
> To: <email@hidden>
> Subject: Re: Shell Script's
>
> At 23:48 -0400 3/9/08, Mark J. Reed wrote:
>> On Sun, Mar 9, 2008 at 11:38 PM, Connor DiPietro <email@hidden> wrote:
>>> Hi
>>>  I am trying to make and an application in Xcode written in
>>>  applescript, and when someone clicks a button i want to preform a
>>>  shell script. i Am having difficulty preforming the shell script
>>>  (let's say x's represent the shell script)
>>>
>>
>> To include double quotes inside a string in AppleScript, escape them
>> with a backslash, e.g.
>>
>> do shell script "xxxxxxxxxxx\"xxx\"xxxxx xxx xxx"
>
> Yeah. But be careful because AppleScript itself is likely to interpret the
> backslashes which can require that the backslashes be escaped with yet more
> backslashes.
>
> Learn about "quoted form of".  There's an app note about it by Chris Nebel.
> --
>
> --> From the U S of A, the only socialist country that refuses to admit it.
> <--
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Shell Script's
      • From: Skeeve <email@hidden>
References: 
 >Re: Shell Script's (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Shell Script's
  • Next by Date: Re: Shell Script's
  • Previous by thread: Re: Shell Script's
  • Next by thread: Re: Shell Script's
  • Index(es):
    • Date
    • Thread