Here is the script I use for this purpose:
*on* documentDidOpen(myDoc)
*tell* *application* BBEdit
*if* *class* *of* myDoc *is* *not* *text document* *then*
*return*
*end* *if*
*if* line breaks *of* myDoc = Unix *then*
*return*
*end* *if*
*if* line breaks *of* myDoc = Mac *then*
*set*
On Oct 24, 2012, at 10:17, John Delacour johndelac...@gmail.com wrote:
Could you please post a working example of Document.scpt containing the two
handlers
documentShouldSave and documentWillSave.
__
Hey John,
using terms
On 24/10/2012 01:50, Rich Siegel wrote:
In this case I would actually recommend using a script attachment
point, rather than trying to hook on to a menu item; you'll get better
behavior.
Rich,
Could you please post a working example of Document.scpt containing the
two handlers
Is there any way to configure BBEdit to warn when the file type is NOT the
default? I typically use Unix (LF) as my file type, and I'd find it helpful
if BBEdit would warn me when I'm saving a file that has Windows linebreaks
instead.
Is there some option that I'm missing?
-Drew
--
--
You
On Oct 23, 2012, at 18:16, Drew Schatt dsch...@fonality.com wrote:
Is there any way to configure BBEdit to warn when the file type is NOT the
default?
__
Hey Drew,
I don't believe there's a built-in method, but BBEdit is
On Tuesday, October 23, 2012, Christopher Stone
listmeis...@suddenlink.net wrote:
I don't believe there's a built-in method, but BBEdit is attachable -
so it should be possible to script this.
Look in the manual under Attaching Scripts to Menu Items.
In this case I would actually recommend