How do I collect documents into front window

2013-11-11 Thread Gazzer
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.

If you do this manually then BBEdit 'uncollects' the unsaved windows upon 
reopening. Also the old Window palette allowed you to select multiple 
windows but now it only allows you to select one so I think a script is the 
only way to go about this. I like to paste temporary snippets as I work and 
it's annoying to have to recollect them every time I reopen BBEdit.

The script was something like this but 'move' throws an error. I tried 
doing a recording but collecting a window doesn't show a command on 
Applescript.

*tell application BBEdit*

* if (count of text windows)  0 then*

* select text window 1*

* repeat while (count of text windows)  1*

* set ct to count documents of text window 2*

* repeat with i from 1 to ct*

* move document 1 of text window 2 to text window 1*

* end repeat*

* end repeat*

* else*

* beep*

* end if*

*end tell*

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com 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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: xcrun command

2013-11-11 Thread Oliver Taylor

 On Nov 9, 2013, at 8:28 PM, John0325 john.someon...@gmail.com wrote:
 
 I don't want to install the developer tools. But it asks me anyways every 
 time. How can I disable this?

http://www.barebones.com/support/bbedit/faqs.html#xcrun

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com 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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: How do I collect documents into front window

2013-11-11 Thread Rich Siegel
On Sunday, November 10, 2013, Gazzer macgroo...@gmail.com wrote:

 * move document 1 of text window 2 to text window 1*

Change document 1 to text document 1 and this will probably work.

R.
-- 
Rich Siegel Bare Bones Software, Inc.
sie...@barebones.com  http://www.barebones.com/

Someday I'll look back on all this and laugh... until they sedate me.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
supp...@barebones.com 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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: How do I collect documents into front window

2013-11-11 Thread Christopher Stone
On Nov 11, 2013, at 00:10, Gazzer macgroo...@gmail.com 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
supp...@barebones.com 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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.