Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Charles Holbrow
    @CharlesHolbrow
    Does the chat work?
    I think that's a "yes."
    Manaswi Mishra
    @eardrummer
    ๐ŸŽถ๐ŸŽถ
    LFSaw
    @LFSaw
    cheers
    burin
    @burin-music
    ahoyhoy!
    Blake
    @jitDotBlake
    Hello!
    aarรณn nontoya-moraga
    @montoyamoraga_gitlab
    testing
    Drew Petersen
    @kirbysayshi

    A quick bash script to close the document in reaper, regen the RPP, and open it:

    #!/bin/bash
    
    set -euo pipefail
    set -x
    
    SCRIPT=$1
    
    osascript <<EOF
    tell application "REAPER"
      activate
      -- key code 118 is F4
      tell application "System Events" to key code 118 using {command down}
    end tell
    EOF
    
    node "$SCRIPT"
    open ${SCRIPT%.js}.RPP

    usage:

    ./reload.sh SCRIPTFILE.js

    Drew Petersen
    @kirbysayshi
    goal with that is to avoid having to tab over, hit the keyboard shortcut, and do the terminal
    instead you just do one terminal!
    Charles Holbrow
    @CharlesHolbrow
    @kirbysayshi Wow, I'm going to try that out.
    There are several commands in there I haven't seen before, but am glad to know about. ๐Ÿ‘Œ๐Ÿป
    Drew Petersen
    @kirbysayshi
    i do not know Applescript AT ALL, this was mostly just copy/paste from the internet
    Charles Holbrow
    @CharlesHolbrow
    same.
    Drew Petersen
    @kirbysayshi
    -- key code 118 is F4 is a comment, fyi
    Charles Holbrow
    @CharlesHolbrow
    nice, yeah that was my guess.
    I have a few ideas for how to improve that part of the workflow, but this is an easier solution
    Drew Petersen
    @kirbysayshi
    i'm sure there's a way to make the flow more intuitive, but this can be a stopgap for mac users at least
    Charles Holbrow
    @CharlesHolbrow
    ๐Ÿ‘๐Ÿป๐Ÿฆพ
    Charles Holbrow
    @CharlesHolbrow
    When using Drew's helpful bash/Apple Script, I found I had to save any changes I made in reaper before running the script. That way the "Save Project before Closing?" dialog box doesn't open up (preventing reaper from reloading disco.RPP via the script.