#!/usr/bin/python from subprocess import call, Popen from simpleOSC import * import socket #make sure reaper is running check = call([ 'pgrep', 'REAPER' ]); if check: Popen(['/Applications/REAPER64.app/Contents/MacOS/REAPER']) ip_address = socket.gethostbyname(socket.gethostname()) #start the client initOSCClient(ip_address, 8088) #start the server to receive messages (not yet implemented) initOSCServer(ip_address, 8808) #run main.py sendOSCMsg("/action/41061")