Re: Replacing braces in search and replace strings "{" and "}"
Re: Replacing braces in search and replace strings "{" and "}"
- Subject: Re: Replacing braces in search and replace strings "{" and "}"
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 27 Jan 2001 17:48:26 -0800
On 1/27/01 10:20 AM, "Arthur J Knapp" <email@hidden> wrote:
>
If word is using some sort of wild-card or regular expression
>
scheme, then it probably has it's own means of "escaping" literal
>
characters.
>
>
Try using: "\\{" and "\\}" to represent "{" and "}".
It's not like that, Arthur. { and } in bold format have special meaning as
Field Code delimiters displayed in Word itself, with that "show field codes"
option on. They can't be used in AppleScript. There is no escape character
for them. They cannot even be typed as { and } in Word itself: you type
command-F9 or option-F9 to get the special bold braces (although there is
now a problem with OS 9.1 imposing its own keyboard implementation of one or
the other of these key combos), or else you can display them by choosing
"Show Field Code" preference. But there is a (completely different) way of
getting field codes and manipulating fields in Visual Basic script, to
correspond with those brace delimiters in the UI. And AppleScript can 'do
Visual Basic'. See my previous contribution in this same thread.
--
Paul Berkowitz