#!/bin/bash
#
# ConvertBot macOS App Launcher
#

# Get the directory where this app is located
APP_DIR="$(cd "$(dirname "$0")/../.." && pwd)"

# Open Terminal and run convertbot
osascript << EOF
tell application "Terminal"
    do script "export PATH=\"$HOME/.local/bin:/opt/homebrew/bin:\$PATH\" && cd \"$APP_DIR\" && convertbot"
    activate
end tell
EOF
