April White wrote:
Doyle Whisenant wrote:

Is there an event that I can use to run a lua script when SciTE is closing similar to OnOpen? Is it possible to do this? If so, how?

I need to access all open buffers when SciTE closes. Anyone know of a reliable way to do this?

Do you want when a buffer closes or when SciTE is exiting?

For the former:
   OnBeforeSave( filename )

For the latter, I believe you are out of luck.

Yes, it's the latter. I figured as much. I need to cycle through all of the buffers, catching bookmarked lines as I go. I just want some way for the user to grab all of the bookmarks without having to specifically remember to do a key combo or click a menu item. If setting a bookmark would require a buffer save, I'd be OK but it doesn't.

I can cycle through them when the user saves a buffer but this is proving to be tricky and a hack way of doing it. Thanks for the info.

On a brighter note, I'm learning a lot about how Lua works!

--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic" at "sonet" dot "net"

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to