On Donnerstag, 03. Mai 2007, at 01:10 (GMT -0400), Chris Pepper wrote:
> a pair of scripts in BBEdit's script menu (one "true" and the other "false")
I've added a few lines to ensure that the user is looking at the same document
before and after the script runs.
tell application "BBEdit"
-- save current displayed document
set savedWindowID to ID of text window 1
set savedDocumentName to active document 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 false
end repeat
end repeat
-- restore displayed document
select (first window whose ID is savedWindowID)
select savedDocumentName
end tell
Paul
--
------------------------------------------------------------------
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]>