How to get the current version of MindManager from a macro ?

Alga shared this question 2 hours ago
Discussion Open

Hi,

- I can't manage to get the current version of MindManager from a macro.

- I'd need it to build a dynamic path to some MM icons in the library/ENU.../..

-> Because typicaly the path includes :

a) the current user, no issue for that, ex:
Dim sUserPath As String
sUserPath = Environ("USERPROFILE")

b) and the current MindManager main version '23', ... '24', which I can't manage to read from a macro. If it can be read dynamicaly then no need to change it anymore at next version update...

- I see in the model that normaly 'Version' is a property of the Application object. It's easy to access the activedocument, but how do we access the active application to read it's version ?


- Please can a MM Wizard bring me some lights ?

Thanks a lot for your help,

KR,
Alga

Replies (1)

photo
1

Hi,

- Found it in the mean time. The application object does not need to be explicitely referenced from a macro, one can access it immediately, so it is as simple as:
Dim sMMVersion As String
sMMVersion = Version

- Another question I have though, is how can we read App Studio tokens from a macro ??

- Please can a MM Wizard bring me some lights :) ??

Thanks a lot for your help,

KR,
Alga

Leave a Comment
 
Attach a file