View Single Post
Old 05-18-2012, 03:13 PM   #889
Seventh
Human being with feelings
 
Seventh's Avatar
 
Join Date: Sep 2010
Location: Finland
Posts: 776
Default

Quote:
Originally Posted by sws View Post
Well, I would just use Reaper's built in "External Editors" function. I've attached two scripts, one for Windows and one for OSX. Download and add the script as an external editor in Reaper prefs. If its your primary editor, it's already bound to Ctrl-Alt-E.
Hey thanks! I can't seem to get this working though. I managed to set it as the external editor, despite of the incompatible extension (.command). But when I select an item and run it, nothing happens. ?_?

Oh, somebody posted this python script earlier. Doesn't seem to work either, at least on OSX.

Code:
import subprocess
import sys

item = RPR_GetSelectedMediaItem(0, 0)
take = RPR_GetActiveTake(item)
source = RPR_GetMediaItemTake_Source(take)
sourceArray = RPR_GetMediaSourceFileName(source, "", 512)

filePath = sourceArray[1]

if sys.platform == 'darwin':
    subprocess.check_call(['open', '-R', filePath])
This results in the following error:


Last edited by Seventh; 05-18-2012 at 03:20 PM.
Seventh is offline   Reply With Quote