• 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: Applescript-users Digest, Vol 2, Issue 107
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Applescript-users Digest, Vol 2, Issue 107 (From: Stefan Eriksson <email@hidden>)

  • Prev by Date: Re: Applescript-users Digest, Vol 2, Issue 107
  • Next by Date: Re: Viewing a jpeg
  • Previous by thread: Re: Applescript-users Digest, Vol 2, Issue 107
  • Next by thread: Restoring a user account...
  • Index(es):
    • Date
    • Thread