• 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: insert a literal quote
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: insert a literal quote


  • Subject: Re: insert a literal quote
  • From: Matthew Smith <email@hidden>
  • Date: Tue, 02 Jul 2002 00:38:53 +1000

on 02/07/2002 00:32, Kerry V. Magruder at email@hidden wrote:

> I'm trying to create a web page with an applescript and don't know how
> to get the applescript to concatenate a text string containing a quote.
> For example, in the following line I receive an error message saying
> that the variable quote is not defined:
>
> set fileInfox to (((wrapper1 as string) & "View image only:" &
> (wrapper2 as string) & ("<a href=" & quote &
> "../images/%FILENAME%.jpg" & quote & " target=" & quote & "_parent" &
> quote & ">" as string) & ("%FILENAME%" as string) & "</a>" & wrapper3 as
> string) & return) as string

You can include a quote symbol in a sting by escaping it with a backslash.

eg.

set x to "<a href=\"http://www.apple.com\";>"

--
Matthew Smith
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >insert a literal quote (From: "Kerry V. Magruder" <email@hidden>)

  • Prev by Date: insert a literal quote
  • Next by Date: Re: Example: Can an AppleScript accept arguments
  • Previous by thread: insert a literal quote
  • Next by thread: Re: insert a literal quote
  • Index(es):
    • Date
    • Thread