\1 in AppleScript

2012-02-10 Thread James
Dear Forum Users, The BBEdit manual calls attention to the fact that AppleScript compiler and BBEdit both use a backslash to escape and read the immediate glyph as a literal. Thus, to automate a grep search the BBEdit manual recommends the following piece of code: tell application BBEdit set

Re: \1 in AppleScript

2012-02-10 Thread Doug McNutt
At 10:35 -0800 2/10/12, James wrote, and I snipped: The BBEdit manual calls attention to the fact that AppleScript compiler and BBEdit both use a backslash to escape and read the immediate glyph as a literal. Thus, to automate a grep search the BBEdit manual recommends the following piece of code:

Re: \1 in AppleScript

2012-02-10 Thread Christopher Stone
Hey James, Yeah BBEdit's terminology has change a bit: tell application BBEdit set result to (find BBEdit searching in text of text window 1 with selecting match) if (found of result) then set text of (found object of result) to Replacement end if end