Scripting Phoranso
This chapter explains how to execute Commands and Script Files with Phoranso's Scripting Interface. Phoranso provides a powerful scripting interface that enables users to execute commands directly from a Windows Command Prompt or through scripting languages such as Python, among others. This scripting capability empowers users to automate tasks and streamline workflows with ease. Executing Commands individually A Phoranso command typically mirrors the interactive functionality available in the regular Phoranso user interface. For instance, the Photometry command corresponds to the Photometry operation found in the Photometry menu. Users can execute Phoranso commands individually from a command line interface. This method is suitable for executing single commands quickly without the need to create a script file. To execute a command individually:
Running Script files Alternatively, users can group multiple commands into a script file for seamless execution. A script file is a plain text document containing a series of commands that are executed sequentially. Each line within the script file represents a command. To run a script file with Phoranso, follow these steps:
By leveraging Phoranso's scripting interface, users can efficiently automate repetitive tasks and integrate Phoranso functionality seamlessly into their workflows, enhancing productivity and flexibility. This chapter provides an overview of all supported scripting commands, complemented by several examples. |