Fantastic! Now, please add
application.pid that gives the process ID, and
application.startTime and I’ll be deliriously happy.
When building almost any kind of plugin licensing scheme, and checking in with a license server, we’d need to know how many different active XD sessions are trying to use the license.
application.pid + '/' + application.startTime would give a solidly unique session id that we could depend on. (The chance of multiple XD applications having the same
.startTime is ridiculously small.)
Otherwise, since plugins are essentially run per-document, if someone opened 3 documents, and the plugin checked in at its startup, it would look the same as if 3 users opened one document.