- Create a plain text file named click_me_to_start (make sure not to include any extension, as it may cause issue in starting up the script in macOS) and paste below text (remember modify your url accordingly):
#!/bin/bash
# Specify the URL you want to open in kiosk mode
url="https://example.com"
# Check if Google Chrome is installed
if [ -e "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" ]; then
# Start Chrome in kiosk mode with the specified URL
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --kiosk "$url"
else
echo "Google Chrome is not installed. Please install Chrome and try again."
fi- Make sure to run below script in terminal to make your script executable
chmod +x click_me_to_start