Best Practices for Shared Customizable Macros?

@griffman, this is a good question and I'll certainly be tracking this thread.

But on the topic of Global Variables...

As I'm sure you know (but some KM beginners, might not) one should avoid large quantities of data (e.g., long lists) in global variables.

For global variables, I use the following naming convention:

jsXYZ__some description

where:

  • js : my initials
  • XYZ : two or three letters indicating the macro (or group of macros)
  • Since these variables are often used in dialogs, I use two underscores before the description.

For example, I have a macro named Log It and one of the global variables is:

jsLI__Add Timestamp Prefix

This groups the variables nicely so I can see (and maybe delete) them in the KM Preferences.