On Oct 24, 2012, at 10:17, John Delacour <[email protected]> wrote:
> Could you please post a working example of Document.scpt containing the two 
> handlers
> documentShouldSave and documentWillSave.

______________________________________________________________________

Hey John,

using terms from application "BBEdit"
  on documentShouldSave()
    beep
  end documentShouldSave
  on documentWillSave()
    beep
  end documentWillSave
  on documentDidSave()
    beep
  end documentDidSave
end using terms from

Using the same handler-set:

~/Library/Application Support/BBEdit/Attachment Scripts/Document.scpt

Beeps 3 times on Cmd-S or 'Save' menu selection.

~/Library/Application Support/BBEdit/Attachment 
Scripts/Document.documentDidSave.scpt

Beeps 1 time on Cmd-S or 'Save' menu selection.

Using BBEdit 10.5 (3221).

The attachment was live - i.e I did not have to restart BBEdit for it to start 
working.

--
Take Care,
Chris

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
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>



Reply via email to