Re: Close multiple files without saving

2019-03-15 Thread Jon Hill
Sweet! I now have a keyboard shortcut defined for it.

Thank you!

On Friday, March 15, 2019 at 3:16:22 PM UTC-5, Christopher Stone wrote:
>
> On 03/15/2019, at 12:00, Jon Hill > 
> wrote:
>
> Maybe I could script it?
>
> --
>
> Hey Jon,
>
> Sure you can.  Something like this will work:
>
> --
>
> *tell* *application* "BBEdit"
> *set* winList *to* *text documents* *whose* name *contains* "untitled" 
> *and* on disk *is* *false*
> *repeat* *with* i *in* winList
> *close* i *without* saving
> *end* *repeat*
> *end* *tell*
>
> --
>
> And you can get much fancier if you want to.
>
> --
> Best Regards,
> Chris
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Close multiple files without saving

2019-03-15 Thread Christopher Stone
On 03/15/2019, at 12:00, Jon Hill mailto:jon.ilu...@gmail.com>> wrote:
> Maybe I could script it?


Hey Jon,

Sure you can.  Something like this will work:


tell application "BBEdit"
set winList to text documents whose name contains "untitled" and on disk is 
false
repeat with i in winList
close i without saving
end repeat
end tell


And you can get much fancier if you want to.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Close multiple files without saving

2019-03-15 Thread Jon Hill
Maybe I could script it?

On Tuesday, March 12, 2019 at 12:26:20 PM UTC-5, Jon Hill wrote:
>
> Thanks! Is there a way to "Close *Selected* Documents" without asking 
> about saving?
>
> On Tuesday, March 12, 2019 at 11:28:00 AM UTC-5, flet...@cumuli.com wrote:
>>
>> Close All Documents, Cmd-Option-W, brings up a single dialog listing all 
>> the documents so you can select which to save or none. Hold down Option 
>> when you hit the window close box and it seems to do the same thing.
>>
>> Close All Windows, Cmd-Option-Shift-W, is similar but seems to ask about 
>> each document individually.
>>
>> [fletcher]
>>
>>
>> On Mar 12, 2019, at 8:51 AM, Jon Hill  wrote:
>>
>> I frequently open a new text file with the clipboard and eventually end 
>> up with many "untitled text nn" files open. It would be nice if I could 
>> close them en masse without selecting "Don't Save" for each one. I gotta 
>> figure there is a way... Is there?? I can select them all, but when I click 
>> a close box on one of the selected files, it asks if I want to save and 
>> only closes the one file, not all of the selected files.
>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or need technical support, please email
>> "sup...@barebones.com" rather than posting to the group.
>> Follow @bbedit on Twitter: 
>> --- 
>> 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+un...@googlegroups.com.
>> To post to this group, send email to bbe...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/bbedit.
>>
>>
>>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Close multiple files without saving

2019-03-12 Thread Jon Hill
Thanks! Is there a way to "Close *Selected* Documents" without asking about 
saving?

On Tuesday, March 12, 2019 at 11:28:00 AM UTC-5, flet...@cumuli.com wrote:
>
> Close All Documents, Cmd-Option-W, brings up a single dialog listing all 
> the documents so you can select which to save or none. Hold down Option 
> when you hit the window close box and it seems to do the same thing.
>
> Close All Windows, Cmd-Option-Shift-W, is similar but seems to ask about 
> each document individually.
>
> [fletcher]
>
>
> On Mar 12, 2019, at 8:51 AM, Jon Hill > 
> wrote:
>
> I frequently open a new text file with the clipboard and eventually end up 
> with many "untitled text nn" files open. It would be nice if I could close 
> them en masse without selecting "Don't Save" for each one. I gotta figure 
> there is a way... Is there?? I can select them all, but when I click a 
> close box on one of the selected files, it asks if I want to save and only 
> closes the one file, not all of the selected files.
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "sup...@barebones.com " rather than posting to the group.
> Follow @bbedit on Twitter: 
> --- 
> 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+un...@googlegroups.com .
> To post to this group, send email to bbe...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit.
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Close multiple files without saving

2019-03-12 Thread Lee Hinde
I did not know this. Thanks!


> On Mar 12, 2019, at 9:27 AM, Fletcher Sandbeck  wrote:
> 
> Close All Documents, Cmd-Option-W, brings up a single dialog listing all the 
> documents so you can select which to save or none. Hold down Option when you 
> hit the window close box and it seems to do the same thing.
> 
> Close All Windows, Cmd-Option-Shift-W, is similar but seems to ask about each 
> document individually.
> 
> [fletcher]
> 
> 
>> On Mar 12, 2019, at 8:51 AM, Jon Hill > > wrote:
>> 
>> I frequently open a new text file with the clipboard and eventually end up 
>> with many "untitled text nn" files open. It would be nice if I could close 
>> them en masse without selecting "Don't Save" for each one. I gotta figure 
>> there is a way... Is there?? I can select them all, but when I click a close 
>> box on one of the selected files, it asks if I want to save and only closes 
>> the one file, not all of the selected files.
>> 
>> 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Close multiple files without saving

2019-03-12 Thread Fletcher Sandbeck
Close All Documents, Cmd-Option-W, brings up a single dialog listing all the 
documents so you can select which to save or none. Hold down Option when you 
hit the window close box and it seems to do the same thing.

Close All Windows, Cmd-Option-Shift-W, is similar but seems to ask about each 
document individually.

[fletcher]


> On Mar 12, 2019, at 8:51 AM, Jon Hill  wrote:
> 
> I frequently open a new text file with the clipboard and eventually end up 
> with many "untitled text nn" files open. It would be nice if I could close 
> them en masse without selecting "Don't Save" for each one. I gotta figure 
> there is a way... Is there?? I can select them all, but when I click a close 
> box on one of the selected files, it asks if I want to save and only closes 
> the one file, not all of the selected files.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter:  >
> --- 
> 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 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Close multiple files without saving

2019-03-12 Thread Jon Hill
I frequently open a new text file with the clipboard and eventually end up 
with many "untitled text nn" files open. It would be nice if I could close 
them en masse without selecting "Don't Save" for each one. I gotta figure 
there is a way... Is there?? I can select them all, but when I click a 
close box on one of the selected files, it asks if I want to save and only 
closes the one file, not all of the selected files.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.