Jump to content
  • How to retrieve all the scripts from an Analysis file in Spotfire® using IronPython Scripting


    This article demonstrates how to get all the scripts associated with an analysis file

    Introduction

    This sample demonstrates how to get all the scripts associated with an analysis file

    Code Sample

    # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    f = open("C:\\temp\\Analysis_IronPython.txt", 'w')
    
    for sc in Document.ScriptManager.GetScripts(): 
        f.write("\n===========================") 
        f.write("\nScript Name : " + sc.Name) 
        f.write("\nLang :") 
        f.write(sc.Language.Language)
        f.write("\nCode :\n") 
        f.write(sc.ScriptCode)
        f.close
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...