• 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: New plist File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New plist File


  • Subject: Re: New plist File
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 2 Feb 2011 15:15:32 -0600
  • Acceptlanguage: en-US
  • Thread-topic: New plist File

Title: Re: New plist File

>>Nope.  Type log quote and run it.  Here is the output.

>> (*"*)

You say potato, I say potato?

If  quote is in an appleScript variable, it’s escaped. “\””

If it’s displayed (as in the log) it’s not escaped. (*”*)

If you wanted to replace the part of your script where you use quote with a quote you would have to escape it.

set
quotingKey to quote & "hello world" & quote
-->"hello world"

set
quotingKey to "\"" & "hello world" & "\""
--
>"hello world"

set
quotingKey to "\"hello world\""
--
>"hello world"

--
--------
set quotingKey to quote & "hello world" & quote
log
quotingKey
(*"hello world"*)
return
quotingKey
-->"\"hello world\""

This last bit gives you a different look in the log and the result window.

ES
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: New plist File
      • From: Alex Zavatone <email@hidden>
References: 
 >Re: New plist File (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: New plist File
  • Next by Date: Re: New plist File
  • Previous by thread: Re: New plist File
  • Next by thread: Re: New plist File
  • Index(es):
    • Date
    • Thread