Skip to content

Instantly share code, notes, and snippets.

@espenmn
Last active April 23, 2023 17:29
Show Gist options
  • Select an option

  • Save espenmn/2e42b14703750d84154770cd60677e2a to your computer and use it in GitHub Desktop.

Select an option

Save espenmn/2e42b14703750d84154770cd60677e2a to your computer and use it in GitHub Desktop.
reaper export script
tell application "REAPER" to activate
tell application "System Events" to tell process "REAPER"
tell menu bar item "File" of menu bar 1
click
delay 1
tell menu item "Project templates" of menu 1
click
delay 1
-- edit line below
click menu item "test template 2" of menu 1
delay 1
keystroke return
end tell
end tell
end tell
repeat with i from 1 to 4
tell application "REAPER"
activate
tell application "System Events" to tell process "REAPER"
tell menu bar item "Insert" of menu bar 1
click
delay 1
click menu item "Media file..." of menu 1
end tell
delay 2
key code 125 --using control down
delay 2
keystroke return
delay 1
keystroke "a" using {command down}
delay 1
keystroke return
delay 1
keystroke return
delay 1
keystroke return
tell menu bar item "File" of menu bar 1
click
click menu item "Render..." of menu 1
end tell
delay 1
keystroke "Sparksify " & ((current date) as string)
keystroke return
beep 1
repeat until (exists menu bar item "File" of menu bar 1)
delay 1
end repeat
end tell
end tell
end repeat
display dialog "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment