Python script to run a Program, HELP. 💰 FORUM
Forum

Forum



SearchSearch   Users   Registration   Entrance
Today: 29.10.2025 - 12:25:16
Pages:  1  

Python script to run a Program, HELP.

MessageAuthor

I need a .py file (script) to launch an external program from Reaper. (If this is possible with a script ?) [1] I have no/none/zero knowledge of Python/Scripting [2] eg. Say I want to launch Wavelab from a button/action from Reaper. Full path "C:\Program Files (x86)\Steinberg\WaveLab 6\WaveLab.exe". If I have a .py file to do this I can add it as an action/button [3] I can then copy this file and edit it with Notepad and replace "C:\Program Files (x86)\Steinberg\WaveLab 6\WaveLab.exe" with any other "exe File Path name", thus creating my own/more actions. [4] Problem is to get one working script to do this. Any help ? Very much please . . . please . . .

---------------
MY 93 318i or 325 IS THE "#1 STANNA" which ever one-still badass to me!!!!!

kimbels_97318i

user




Statistics:
Messages: 60
Registration: 03.01.2002
21.09.21 - 00:15:20
Message # 1
RE: Python script to run a Program, HELP.

Hi, You can do this already with . Goto the main menu, then extensions > command parameters Then click on external tool 1, and browse for Wavelab Then in the actions menu, look up external tools, and you can assign that to a button.

---------------

RyanM3

user




Statistics:
Messages: 110
Registration: 02.13.2003
21.09.21 - 00:24:29
Message # 2
RE: Python script to run a Program, HELP.

Yes, I know about that, but that only gives you 2 actions. Thanks for the nice GIFs and your effort. I really want to use Python, more powerfull, no limit. (will give me a change to start learning scripting as well) I got this far : (After many searching/reading) import os os.system ("Notepad.exe") ... this opens Notepad along (with a black "cmd.exe" window) After much struggle this also opens Notepad (+ cmd window as well) import os os.system ("C:\\WINDOWS\\system32\\notepad.exe") Must be 2 slashes "\\" ...but this won't work import os os.system ("C:\\Program Files (x86)\\Steinberg\\WaveLab 6\\WaveLab.exe") I'm now fighting with the "call" command: import "something (can't figure this out)" call ("C:\\Program Files (x86)\\Steinberg\\WaveLab 6\\WaveLab.exe") It don't recognize the "call" command, some module has to be imported, I think...I don't even know if I am on the right track. Tried on Python v2.7.3, now running v3.2.3, still no luck. Any programmer that can help, it's probable very easy ?

---------------

guc32

user




Statistics:
Messages: 2,545
Registration: 09.07.2001
21.09.21 - 00:34:10
Message # 3
RE: Python script to run a Program, HELP.

os.system waits for a return value so won't work from reascript try: Code:

---------------

bbw808

user




Statistics:
Messages: 991
Registration: 09.25.2003
21.09.21 - 00:45:21
Message # 4
RE: Python script to run a Program, HELP.

Many thanks for brief explanation! Im trying to start learning Python as well :) Is it possible to write a string such as "%windir%\system32\shutdown.exe -s -t 0" ? to shutdown Windows from Reaper

---------------
Sam Lamson Durham, NC 1993 325is- GC/AD suspension; Stoptech BBK; Competition Cages rollcage; Dinan headers/exhaust 1995 325i- daily driver 1997 Ford E-350 w/Triton V10- tow vehicle Click here to email me

davidlamson

user




Statistics:
Messages: 182
Registration: 06.13.2002
21.09.21 - 00:56:30
Message # 5
RE: Python script to run a Program, HELP.

Wow Zerkie. Great graphical explanation. What program did you use for that? Thanks, Wyatt

---------------

Moldy Hagus

user




Statistics:
Messages: 174
Registration: 05.02.2003
21.09.21 - 01:01:35
Message # 6
RE: Python script to run a Program, HELP.

Holy crap - talk about synchronicity! I just did this for the first time today as well. But I used subprocess.call(). My version briefly flashes a console window, which I don't want. Can anyone tell me if this Popen() method does or does not do that? Unfortunately I'm not near a computer I can test with. Thanks!

---------------
::1995 Cosmos M3 Coupe Lux/5spd::

bmrblvr

user




Statistics:
Messages: 134
Registration: 08.01.2003
21.09.21 - 01:06:24
Message # 7
RE: Python script to run a Program, HELP.
GROUP MIX week 2: "Fiction Meets Truth" submissions and discussion...! : Previous topicNext topic: Can\'t \"play\" protools PLEASE HELP!!!
Pages:  1  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

Forum powered by: PunBB 5.0.6