How to open Firefox in Full Screen mode?

白昼怎懂夜的黑 提交于 2019-12-11 04:39:43

问题


I need to open Firefox on a Mac running Lion in Full Screen mode to act as a kiosk.

I was using the R-Kiosk 0.9.0 Firefox Add-on; but, it conflicts with a print javascript I am also running, so I can't use it.

Anyone know a way to accomplish this? either with an add-on or, perhaps, with AppleScript? Could an AppleScript be triggered to run when Firefox is opened?


回答1:


This should do it:

activate application "Firefox"
delay 2    
tell application "System Events"
tell process "Firefox"
    click menu item "Full Screen" of menu 1 of menu bar item "View" of menu bar 1
end tell
end tell

or maybe a keystroke:

activate application "Firefox"
delay 2
tell application "System Events"
keystroke "f" using {command down, shift down}
end tell


来源:https://stackoverflow.com/questions/9542492/how-to-open-firefox-in-full-screen-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!