Oops.  Yeah, that's an obvious problem.

Unfortunately, I still get the same error after I change that.

Thanks!

Ian

On Nov 9, 2007, at 7:01 AM, Kjetil Rå Hauge wrote:

Ian Crew wrote:
Hi:
I'm trying to write an Applescript that uses BBEdit to do a grep- =based replace. My code currently looks like:
tell application "BBEdit"
    activate
    --set foo to  window
        open j opening in new_window
    tell text document 1
        activate
        set searchStr to "2007-08-\\d\\d"
set replaceStr to "<!--MODDATE-->" & mod_date & "<!--\\/ MODDATE-->" replace (searchStr as string) using (replaceStr as string) options {search mode:literal, starting at top:true} searching in text 1
                       ^^^^^^^

substituting "grep" for "literal" here should give some improvement (been there, done that)


--
---
Kjetil Rå Hauge, U. of Oslo, PO Box 1003 Blindern, N-0315 Oslo, Norway
Tel. +47/22856710, fax +47/22854140

--
---------------------------------------------------------------------- --
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>


Ian Crew
Supervisor, Collaboration Services
Information Services and Technology-Data Services
University of California, Berkeley
2195 Hearst Ave, Second Floor
http://ist.berkeley.edu/ds/

2009 Chair, Chancellor's Staff Advisory Committee
http://csac.chance.berkeley.edu


--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to