Hi,
getScriptLibrary() call intended to retrieve list of available scripts (because script source could be quite big). Source code for each script should be retrieved individually using getScript() method. The following script will show sources for all scripts:
Best regards,
Victor
getScriptLibrary() call intended to retrieve list of available scripts (because script source could be quite big). Source code for each script should be retrieved individually using getScript() method. The following script will show sources for all scripts:
Code Select
scripts = session.getScriptLibrary()
for script in scripts:
script = session.getScript(script.getId())
print('id={0} name={1} source={2}'.format(
script.getId()
,script.getName()
,script.getSource()
)
)
Best regards,
Victor