At 8:42 AM +0200 2007/05/03, Paul Richardson wrote:
On Donnerstag, 03. Mai 2007, at 08:36 (GMT +0200), Paul Richardson wrote:
On Donnerstag, 03. Mai 2007, at 00:33 (GMT -0600), Google Kreme wrote:
> On 2-May-2007, at 23:10, Chris Pepper wrote:
> > Thanks much, guys. I now have a pair of scripts in BBEdit's script
> > menu (one "true" and the other "false"):
>
> You can do it with one script to toggle...
... Assuming all windows are in the same wrapping state
Or you set the wrapping of all windows based on the front window, thus:
tell application "BBEdit"
-- save current displayed document
set savedWindowID to ID of text window 1
set savedDocumentName to active document of text window 1
set toggleState to soft wrap text of text window 1
-- toggle wrapping
repeat with w in text windows
repeat with d in documents of w
select d
set soft wrap text of text window 1 to not toggleState
end repeat
end repeat
-- restore displayed document
select (first window whose ID is savedWindowID)
select savedDocumentName
end tell
Cool! I don't really care about returning to the previous
front document, but it's a nice-to-have, but I do want all documents
in the same wrap state even if they weren't before -- it's too
confusing otherwise.
Muchas gracias,
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]>