How to get LOG_MESSAGE name_of_script_being_run?

kbellis
Global Mapper UserTrusted User
Is there any means to echo the name of the script file being run and get that value added into the log?
Best Answers
-
Hello,
LOG_MESSAGE %SCRIPT_FILENAME%
Cheers,
Bob -
You make a good point regarding the documentation for built-in script variables. I have passed it along to the documentation folks to see if we can get it into the updates for Global Mapper 20.
Cheers,
Bob
Answers
-
Up and at 'em! 5:42, and good for you! Thanks for this Bob.I tried just now to find in the scripting reference a listing of the predefined variables, which I knew I had seen somewhere from earlier browsings, but the given section names in the reference didn't reveal, or even hint where. Doing a search on SCRIPT_FILENAME, found selected groupings.From reading an earlier post this morning by Veddycent, and more in particular, a look at his script, he too had used a predefined variable; i.e., FNAME_W_DIR; in the script reference however, it was generally categorized as being a built-in variable (as opposed to being a predefined variable) and was found in sets uncommon with, for example, SCRIPT_FILENAME.So one takeaway from all of this: Within the scripting reference, could there be some unifying listing of all predefined, built-in, and otherwise named existing Global Mapper variables? If they have a limited context in which they are to be applied, that could be explained along with a link to the particular details of such contexts.
Howdy, Stranger!
Categories
- 12.2K All Categories
- 5.3K Features Discussion
- 312 Downloading Imagery
- 1.2K Elevation Data
- 371 Georeferencing Imagery Discussion
- 580 GM Script Language
- 42 User Scripts
- 111 GPS Features
- 388 Projection Questions
- 788 Raster Data
- 1.3K Vector Data
- 6.4K Support
- 159 Announcement and News
- 881 Bug Report
- 554 SDK
- 1.1K Suggestion Box
- 3.6K Technical Support
- 520 Other Discussion
- 125 GIS Data Sources
- 26 Global Mapper Showcase
- 217 How I use Global Mapper
- 99 Global Mapper Forum Website