@echo off
chcp 65001 >nul 2>&1

REM ============================================
REM  Audio to Meeting Minutes - Quick Launcher
REM  Usage: drag an audio file onto this file
REM         or run: run.bat path\to\audio.m4a
REM
REM  IMPORTANT: Replace PYTHON_PATH below with
REM  your actual Python executable path.
REM  WorkBuddy managed Python example:
REM    C:\Users\<username>\.workbuddy\binaries\python\envs\default\Scripts\python.exe
REM  System Python example:
REM    python
REM ============================================

REM --- Set your Python path here ---
set PYTHON=python
set SCRIPT=%~dp0audio_to_minutes.py

if "%~1"=="" (
    echo.
    echo  Please provide an audio file path.
    echo  Usage: run.bat path\to\audio.m4a
    echo  Or drag an audio file onto this file.
    echo.
    pause
    exit /b 1
)

echo.
echo  Starting audio transcription...
echo  File: %~1
echo.

"%PYTHON%" "%SCRIPT%" "%~1"

echo.
pause
