On Nov 11, 2013, at 00:10, Gazzer <[email protected]> wrote:
> Previous versions of BBEdit came with an Applescript that would allow you to
> collect all the Windows into single window but it no longer works.
>
> Ideally, what I'd like to do would be to collect all Unsaved Documents into
> the front Window although doing all windows would be good too.
______________________________________________________________________
Hey There,
This script will collect all unsaved text documents into a single project
window.
It's working here with BBEdit 10.5.6 (3329) on Mavericks but hasn't been
rigorously tested.
--
Best Regards,
Chris
----------------------------------------------------------------------
try
tell application "BBEdit"
set docList to text documents whose on disk = false
if length of docList = 0 then
beep
else if length of docList = 1 then
set frontDoc to item 1 of docList
select frontDoc
else if length of docList > 1 then
set frontDoc to (item 1 of docList)'s window
select frontDoc
set docList to rest of docList
repeat with i in docList
move i to frontDoc
end repeat
end if
end tell
on error e number n
set e to e & return & return & "Num: " & n
tell me to set dDlg to display dialog e with title "ERROR!" buttons
{"Cancel", "Copy", "OK"} default button "OK"
if button returned of dDlg = "Copy" then set the clipboard to e
end try
----------------------------------------------------------------------
--
This is the BBEdit Talk public discussion group. 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>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].