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
> 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
documentShouldSave and documentWillSave.
I have tried to follow the instructions given in the manual and am clearly missing something, since nothing happens.
using terms from application "BBEdit"
on documentShouldSave()
beep
end documentShouldSave
on documentWillSave()
beep
end documentWillSave
on documentDidSave()
beep
end documentDidSave
end using terms from
To install: name the script "Document.documentDidOpen.scpt" and put it in "~Library/Application Support/BBEdit/Attachment Scripts" Some kind person at BareBones tech support gave this to me (unfortunately I can't find the email to give proper credit); I made a few tweaks.
On Tuesday, October 23, 2012 4:16:28 PM UTC-7, Drew Schatt wrote:
> 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