Automation idea: When I stop recording my footage and camera is plugged to USB port, copy latest video file to a predefined folder + to a currently open REAPER project.
TODO:
- Check if file exists in the destination path before copying
- Run the bat script hidden (prevent the window from appearing)
- Or get rid of the bat script altogether and try to reimplement it all in powershell function?
- Try to insert the footage into Reaper (
InsertFootage.lua
)
- Plug your camera to USB port
- Note its drive letter and label
- Open PowerShell ISE as Administrator
Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy ByPass
- Click New
- Paste SyncNEX.ps1
- Modify variables:
$cameraDriveLetter
andcameraDriveLabel
- Save file
- In your camera create a new file called
sync.bat
in the root path - Paste
sync.bat
content inside - Modify
FootageOrigin
andFootageDestination
- Open Task Scheduler
- Create basic task
- Trigger: At log on
- Action: Start a program
- Program/script: powershell
- Arguments
-WindowStyle Hidden -ExecutionPolicy Unrestricted -File "C:\Users\Studio\Documents\WindowsPowerShell\SyncNEX.ps1"
get latest file in forlder
for /f "tokens=* usebackq" %f in (`dir /b /o:-d *.mkv`) do echo %f