How can I open Google Chrome in Presentation mode using a shell script
I tested this out and then it wouldn't let me exit kiosk mode. I had to Cmd+Q to get out of Google Chrome. Save the following to a script, something like ChromeKiosk.sh
and chmod +x ChromeKiosk.sh
to get it to run.
#!/bin/bash
open "/Applications/Google Chrome.app" --args --kiosk http://www.google.com.au
This will open Google Chrome to the http://www.google.com.au
webpage. Change it as you need. Copy and paste the rest of the script
If you want to turn it into an AppleScript so that you can create an application that can in turn be automatically run each time the computer reboots to a default specified user, use the following code and when you save the script, change it's type to Application
do shell script "/bin/bash open \"/Applications/Google Chrome.app\" --args --kiosk"
It's requires the \
(escape sequence) before the "
because of the way the shell reads the spacing between the words Google and Chrome in the filename. You can also write it as
do shell script "/bin/bash open /Applications/Google\\ Chrome.app --args --kiosk"
It's just that I've never favoured the look of seeing a escape before a backslash. It's too messy. Stick with either the BashScript option at the top or use the 1st of 2 AppleScript lines and save it as an Application type.