This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOG_FILE="$HOME/Library/Logs/mov_to_mp4.log" | |
# Function to log messages and send macOS notifications | |
log_and_notify() { | |
local message="$1" | |
local emoji="$2" | |
echo "$(date +'%Y-%m-%d %H:%M:%S') $emoji $message" | tee -a "$LOG_FILE" | |
osascript -e "display notification \"$message\" with title \"MOV to MP4 Converter\"" |