Page 1 of 1

Python Scripting & Open Script Shell

PostPosted: Fri Dec 14, 2018 6:18 pm
by Charles
Hi

So just getting started in the basics of Python and I have a very fundamental question with regard to Indigo scripting.
Where is it actually done?

In the trigger window-conditions, there is a window to install some scripting. And there is the Scripting Shell which launches the terminal window opening the Indigo Plugins "Python" shell. But once in the terminal mode, how and where is a script saved. The IOD discusses the shell and python but can't seem to find the how, when and where a script runs in my given environment?

Thanks, Charles

Re: Python Scripting & Open Script Shell

PostPosted: Fri Dec 14, 2018 6:31 pm
by FlyingDiver
The scripting shell is for testing Python code. Once you have code that does what you want, you save it in a Scripting action in an Action group, Schedule, or Trigger.

Also, you can save it to an external file on the computer, and execute that file from an Action group, Schedule, orTrigger. You must do it in an external file if the script takes more than a few seconds (10 max, I think) to run.

Re: Python Scripting & Open Script Shell

PostPosted: Fri Dec 14, 2018 9:52 pm
by jay (support)
Specifically, the Execute Script action.

Re: Python Scripting & Open Script Shell

PostPosted: Tue Dec 18, 2018 6:09 pm
by Charles
Thanks Jay :D