On May 2, 2007, at 6:18 PM, Johan Solve wrote:
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?
soft wrap is a property on the window because it is a display
property, not a data/document property. The fact that you can only
change it for the currently selected document in a multi-document
window is problematic though...
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...).
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
--
------------------------------------------------------------------
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]>