On Tue, Sep 15, 2020 at 5:22 PM 'David Fisher' via Notecase Pro
<
noteca...@googlegroups.com> wrote:
>
> Paul, I would be happy with simplicity at the moment. I.e. just use the same destination the user has set for the Clipboard Monitor. I think I would prefer to have no divider lines. Just a plain list of text items that I could then send off to be new notes or tags or whatever. Essentially the same as what you would end up with if copying from an external application.
As I recall, that throws a blank line between clips.
> I have started looking at scripting in NCP and am very taken with what I see. The interface makes it easy to "grab" scripts and make them available. I think this kind of "macro writing" approach is a very good fit for this type of programme. Looking forward to developing some scripts of my own - there seem to be plenty of examples to work from.
Great!
I've become quite enthused with extending NC Pro with Lua scripts. The
possibilities seem nearly boundless. I never tried programming before
I began with Lua and NC Pro but have found it surprisingly easy (a few
debugging sessions excluded).
If you want to experiment with scripting the program, I suggest
installing Daniel's Plugin Developer Tools plugin. It has quite a few
scripting aid scripts. You'll find many more in my Cornucopia Script
collection (and oodles of useful functions you can copy and paste)
downloadable from
<
https://sites.google.com/site/marbux/home/cornucopia-scripts>. That's
a work in progress. Scripts that have an "x" prepended to their titles
are not working yet. Bug reports on any of the others will be
appreciated.
A couple of gotcha's to watch out for:
1. Character formats: Lua wants nothing but ASCII, NC Pro wants
nothing but UTF-8. Use the embedded utf8 library in place of the
corresponding Lua string functions. See Help file > Automation,
Scripts and Plugins > Scripting NoteCase Pro > Integrated Lua
Libraries > Lua-utf8 > Routines Substituting for Lua Routines
2. Character counts: Because it's built atop the GTK programmer's
library, NC Pro begins its string character counts at 1. The embedded
utf-8 library, like Lua, begins its character counts at 0. The math
isn't difficult; remembering which is which during those long periods
between running into this problem is another story (at least for me
:-).
Best regards,
Paul
By the way, I've just finished debugging one of them that belongs with
the scripts I sent earlier, Delete All Descendants (without deleting
the current note). So the updated Tree Actions collection is attached.