get symbols()In JSL, there is a function get namespaces() to get al ist of all namespaces with all defined symbols.
... and a function show symbols() to show all symbols of all namespaces : print to log.
is there something like get symbols(), to get the list of symbols as a return value?
Automation and ScriptingRe: get symbols()You will most likely have to write your own function to collect the symbols which might be quite simple to do, depending on what you are trying to do it the end.
Re: get symbols()ok, thanks. I hoped there was a function ...
get symbols = Function( {},
{default local},
Names Default To Here( 1 );
nsNames = Get Namespace Names();
Insert Into( nsNames, "global" );
allSymbols = Transform Each( {NS}, nsNames,
tmp = Associative Array();
tmp["NS"] = NS;
tmp["content"] = Namespace( NS ) << get contents;
tmp;
);
allSymbols
);
get symbols()