• 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: Quoted text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quoted text?


  • Subject: Re: Quoted text?
  • From: Pier Kuipers <email@hidden>
  • Date: Thu, 18 Jan 2001 08:04:38 +0000

>Script:
>set x to "He said \"Oops.\" after dropping the plate." as string
>get x
>
>Result:
>"He said \"Oops.\" after dropping the plate."
>
>What I want:
>"He said "Oops." after dropping the plate."
>(see no slashes)

set x to "He said \"Oops.\" after dropping the plate." as string
display dialog x

This will display the text the way you want it, I imagine. Or, if you
really want double quotes around the whole sentence:

set x to "\"He said \"Oops.\" after dropping the plate." & "\"" as string
display dialog x

By using 'get x' in your script, you will see the result that
Applescript returns, however, using this result as a variable for
some other script action such as 'display dialog' *will* display the
correct string.

Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *

2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Fax +353 1 478 1366
ISDN +353 1 602 0754

http://www.visualid.com


References: 
 >Quoted text? (From: Michael Kern <email@hidden>)

  • Prev by Date: Re: Quoted text?
  • Next by Date: Re: application watcher / idle detector
  • Previous by thread: Re: Quoted text?
  • Next by thread: Re: Quoted text?
  • Index(es):
    • Date
    • Thread