Is it possible to combine multiple manipulations performed by my script into one undo group?

My script shuffles around text by deleting and inserting it, and currently undoing the effect of the script requires invoking Undo twice. I would like to undo the changes, which are user-visible as just one combined modification, with just one level of undo.

I tried

with transaction
...
end transaction

but that didn't have the desired effect. Searching for "undo" in the dictionary didn't turn up anything helpful either.







_________________________________________________________________
Marc Liyanage                               http://www.entropy.ch



--
------------------------------------------------------------------------
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