Re: How to Use Quotes as Part of Literal Text
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