I am considering using Mac Minis as kiosks at a library. They would simply serve the catalog pages of our library system. I am considering using Firefox instead of Safari and I have almost everything taken care of but one little sticking point.
I have scripted Firefox to load on startup and to re-launch when it is not found. I put Javascript into the web page to make it reopen if closed, but, I cannot figure out how to maximize the window if someone collapses it.
Here is my script, so far:
tell application "Finder"
repeat
tell application "System Events"
if exists process "Firefox" then
if visible of process "Firefox" is not true then
set visible of process "Firefox" to true
set the frontmost of application process "Firefox" to true
end if
tell application "Finder"
set collapsed of window "Firefox" to false
end tell
else
tell application "Firefox"
launch
end tell
end if
end tell
delay 5
end repeat
end tell