Is it possible to combine multiple manipulations performed by my
script into one undo group?
Unfortunately, no. Each scripted action is recorded as a single
undoable action.
Jim
in some cases you could set your selected text to a var, then
manipulate that var within applescript, then replace the selected text
once. which will then give you a one undo action. obviously that is
limited to specific types of actions, but i was able adjust one of my
scripts that way. a hackier way that would work with all scripts is to
make a temp file of your text, manipulate, then copy the results to a
var, close the temp file and write it out your working file as one
action. not pretty, but if you've got some long script it might be
worth it.
cheers
andrew
--
------------------------------------------------------------------------
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]>