Hi
I know you have a PY in the code builder but how do I execute an external PY file and record the output into MS, please?
How do I execute and record an external Python script.
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: How do I execute and record an external Python script.
You can run via the command line using the RunProgram command. To get the output you could pipe to a text file and then read the text file back?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: How do I execute and record an external Python script.
Pipe to clipboard is better in my opinion. | clip
Re: How do I execute and record an external Python script.
Thanks. I didnt realise I can execute Python files like that but I have done a lot of batch files through MS before. Cool beans. 

Re: How do I execute and record an external Python script.
Still having problems with it. Its generating the error related to file system permissions but even running MS in admin mode isnt working.
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: How do I execute and record an external Python script.
Do you have the libraries you're script is using?