• 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: preserving literal text in AppleScripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preserving literal text in AppleScripts


  • Subject: Re: preserving literal text in AppleScripts
  • From: Emmanuel <email@hidden>
  • Date: Sun, 17 Dec 2006 18:34:23 +0100

At 11:59 AM -0500 12/17/06, Cameron Hayne wrote:
The problem is that AppleScript makes it impossible to even define a string with backslashes (without escaping them manually).
E.g. the statement:
set pattern to "/^\s*foo"
is rejected.

If you're doing such things, maybe you should consider using Smile. In Smile, you write:


set pattern to /^\s*foo

then you select your string /^\s*foo, and you press cmd-" ("Make an AppleScript string") to have it escaped.

Emmanuel
_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >preserving literal text in AppleScripts (From: Cameron Hayne <email@hidden>)
 >Re: preserving literal text in AppleScripts (From: Emmanuel <email@hidden>)
 >Re: preserving literal text in AppleScripts (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Don't understand contains.
  • Next by Date: Want to get the full path of the mailbox
  • Previous by thread: Re: preserving literal text in AppleScripts
  • Next by thread: Re: preserving literal text in AppleScripts
  • Index(es):
    • Date
    • Thread