At 17.54 -0400 2007-05-02, Chris Pepper wrote:
>Thanks! Unfortunately, when I run that, BBEdit immediately complains about a 
>-10000 AppleScript error. I'm trying it with 2 windows open; one dirty and one 
>unsaved, although I don't see why that should matter.

Yes that was odd. I didn't try it earlier but get the same result as you now 
that I do.
When checking the dictionary, "soft wrap text" seems to be a property of text 
window, not text document. Shouldn't this property belong to the text document 
class, not the text window class?
Bug?

So this script runs:
tell application "BBEdit"
        repeat with w in text windows
                set soft wrap text of w to true
        end repeat
end tell

But it doesn't do what it should as it only affects the front document of each 
window. Not sure how to get around that (the "active document" property of Text 
Window is read only...).

Maybe this discussion should be moved to BBEdit Scripting.

--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[EMAIL PROTECTED]
 (spam-safe email address, replace '-' with 'a')

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