Re: Applescript-users Digest, Vol 2, Issue 107
Re: Applescript-users Digest, Vol 2, Issue 107
- Subject: Re: Applescript-users Digest, Vol 2, Issue 107
- From: Andrew Oliver <email@hidden>
- Date: Sat, 19 Feb 2005 13:02:04 -0800
On 2/19/05 12:15 PM, "Stefan Eriksson" <email@hidden> wrote:
> Howdy !
>
> How to i parse this one to make it work ? Having double ""´s...
>
> set ScriptToBeRun to "Convert -font /Library/Fonts/Arial -fill black
> -pointsize 72 -draw "text 100,100 Customer_Saab_Scania"
> /Users/stefan/Desktop/template.jpg testtext.jpg"
>
> do shell script ScriptToBeRun
>
> Can´t have "" code "" and (" code ") doesn´t work either, help !
>
> / Ster
You need backslashes to escape the quotes, or use single quotes in the shell
command, so either:
set ScriptToBeRun to "convert -blah -blah -draw \"text 100,100
Customer_Saab_Scania\" /Users/stefan/blah/blah"
or:
set ScriptToBeRun to "convert -blah -blah -draw 'text 100,100
Customer_Saab_Scania' /Users/stefan/blah/blah"
The first form is the more common one. The backslash escapes the quote
symbol so that AppleScript passes it through to the variable rather than
treating it as the string terminator.
Andrew
:)
_______________________________________________
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