On May 12, 2007, at 6:45 PM, Jason Davies wrote:

There is a 'Mark' verb in the Applescript dictionary, but I can't
figure out the syntax even if my life depended on it.

mark v : mark matches of a specified search pattern with a string
mark reference : text to be marked
options Mark Options : options for the search

<scratches head>I'm lost too (significantly more common than in your case)

Does anyone know how to use this?

Yes. I know how to use it :-)

It doesn't look like it is related to markers somehow (unless it automates the 'mark all' function).

It is related to mark all. In fact, recording mark all will give you an example of how to use it.

Or if you write it out by hand, you'll end up with something like:

tell application "BBEdit"
        tell text of document 1
mark it options {searching for:"^asdf: (.*)$", using:"\\1", clearing existing:true}
        end tell
end tell


Jim


--
------------------------------------------------------------------
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_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to