BBEdit used to supply the script below to collect windows together.
Unfortunately, it no longer works, failing on the move ... to ... line
near the end. (It does work with TextWrangler).
How can I fix it? And also how can I make it just collect the windows
containing the name 'untitled' (i.e. the unsaved windows).
tell application "BBEdit"
set zTextWindowCount to count text windows
if zTextWindowCount is 0 then
beep
return
end if
select text window 1
set zTextWindow to (a reference to text window 1)
set zDocumentsToMove to {}
set textWindowCount to count text windows
repeat with zIndex from 2 to zTextWindowCount
set zDocumentsToMove to zDocumentsToMove & (every document of
text
window zIndex)
end repeat
set zCount to count items of zDocumentsToMove
repeat with zIndex from 1 to zCount
set zDocument to item zIndex of zDocumentsToMove
move zDocument to zTextWindow
--fails on line above
end repeat
end tell
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>