• 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: How to Set Text to Include Quotes (") ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Set Text to Include Quotes (") ?


  • Subject: Re: How to Set Text to Include Quotes (") ?
  • From: Rob Jorgensen <email@hidden>
  • Date: Sat, 18 Jan 2003 18:22:23 -0500

At 6:09 PM -0500 1/18/03, cassj wrote:
Johnny-

This is probably a better approach. Set a variable called "quote" to
the quotemark and use it when you need it.


tell application "Finder"
activate
set quote to "\""
set myquotedtext to "this is my text"
set mytext to quote & myquotedtext & quote
display dialog mytext
end tell

Better yet is to take Finder out of the process since it isn't needed to do any of the stuff above.

set quote to "\""
set myquotedtext to "this is my text"
set mytext to quote & myquotedtext & quote
display dialog mytext

--

Rob Jorgensen
Ohio, USA
_______________________________________________
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.

  • Follow-Ups:
    • Detecting when application launch has completed (OS X)
      • From: Mr Tea <email@hidden>
References: 
 >Re: How to Set Text to Include Quotes (") ? (From: cassj <email@hidden>)

  • Prev by Date: Re: How to Set Text to Include Quotes (") ?
  • Next by Date: Re: Howto Display terminal return value??
  • Previous by thread: Re: How to Set Text to Include Quotes (") ?
  • Next by thread: Detecting when application launch has completed (OS X)
  • Index(es):
    • Date
    • Thread