#!/bin/bash # Open DuckDuckGo browser and navigate to Crunchyroll open -a "DuckDuckGo" "https://www.crunchyroll.com/crunchylists" # Allow time for the browser to launch and the page to load sleep 3 osascript <<'EOF' tell application "DuckDuckGo" activate end tell tell application "System Events" tell process "DuckDuckGo" -- Send Alt+2 (Mi Monitor) key code 124 using option down -- Wait 2 seconds delay 2 -- Send Ctrl+F (Fn modifier is not supported by AppleScript) keystroke " " using {command down, option down, control down} end tell end tell EOF