• 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: How to Use Quotes as Part of Literal Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Use Quotes as Part of Literal Text


  • Subject: Re: How to Use Quotes as Part of Literal Text
  • From: Johnny AppleScript <email@hidden>
  • Date: Tue, 19 Oct 2004 15:38:34 -0600

On 04/10/19 3:27 PM, "Jim Main" <email@hidden> wrote:

> set ScriptToRun to "curl ftp://ipaddress/index.html -# -t "Local
> Drive:index.html" -u "username:password""
>
>
> How do you set something to include a quote as text, instead of it
> demarking the text of what you want set?

Use the backslash character to escape (ignore) any offending characters:

set ScriptToRun to "curl ftp://ipaddress/index.html -# -t \"Local
Drive:index.html\" -u \"username:password\""

You may still find problem once that gets passed to shell; additional
escaping may be required, or use of 'quoted form of [string]' (see SA
dictionary).

 _______________________________________________
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: 
 >How to Use Quotes as Part of Literal Text (From: Jim Main <email@hidden>)

  • Prev by Date: How to Use Quotes as Part of Literal Text
  • Next by Date: Monitor brightness and UI Scripting
  • Previous by thread: How to Use Quotes as Part of Literal Text
  • Next by thread: Re: How to Use Quotes as Part of Literal Text
  • Index(es):
    • Date
    • Thread