At 7:00 PM -0400 2007/05/02, Jim Correia wrote:
On May 2, 2007, at 6:18 PM, Johan Solve wrote:

The active document property is read only, but you can change the active document indirectly using the select verb.

tell application "BBEdit"
        repeat with d in documents of text window 1
                select d
                delay 1 -- for effect
        end repeat
end tell

Thanks much, guys. I now have a pair of scripts in BBEdit's script menu (one "true" and the other "false"):

tell application "BBEdit"
        repeat with w in text windows
                repeat with d in documents of text window 1
                        select d
                        set soft wrap text of w to true
                end repeat
        end repeat
end tell


                                                Chris
--
Chris Pepper:                <http://www.reppep.com/~pepper/>
                             <http://www.extrapepperoni.com/>
The Rockefeller University:  <http://www.rockefeller.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_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to