Retrieving Icon from Icon Dialog with LUA

5 views
Skip to first unread message

info.sim...@googlemail.com

unread,
Jul 26, 2023, 3:37:09 PM7/26/23
to Notecase Pro
Hi All,

is there a trick to use Lua to open the Icon Dialog for notes and retrieve the selected Icon back in a Lua variable? Did not find an application action names for it

I am working in a batch routine with various functions. Assigning a user selected icon to all selected (marked) notes is one of it

thanks
Raimund

Paul Merrell

unread,
Jul 26, 2023, 4:33:53 PM7/26/23
to noteca...@googlegroups.com
We don't have that. But you can fetch an icon using its name.

I've got a script for your task. But don't remember how I did it and
won't be able to send it for a couple of hours or so. I'm in the
process of rebuilding my system and am not quite to where I can
install NC Pro. As soon as I do that, I'll post the script for you.


--
[Notice not included in the above original message: The U.S. National
Security Agency neither confirms nor denies that it intercepted this
message.]
¯\_(ツ)_/¯

Paul Merrell

unread,
Jul 26, 2023, 7:14:53 PM7/26/23
to noteca...@googlegroups.com
Raimund, the script is attached. I've thrown in a couple of other
icon-related scripts in case they come in handy. I haven't taken these
for a test drive in quite awhile, so I'll let you be the guinea pig.

Best regards,

Paul
Tmp.ncdb
Reply all
Reply to author
Forward
0 new messages