如何在全屏模式下打开Firefox?
问题描述:
我需要在以全屏模式运行Lion的Mac上打开Firefox,以充当信息亭。如何在全屏模式下打开Firefox?
我正在使用R-Kiosk 0.9.0 Firefox附加组件;但是,它与打印的JavaScript冲突我也在运行,所以我不能使用它。
任何人都知道一种方法来实现这一点?无论是加载项还是AppleScript?打开Firefox时是否可以触发AppleScript运行?
答
这应做到:
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
,或者一个按键:
activate application "Firefox"
delay 2
tell application "System Events"
keystroke "f" using {command down, shift down}
end tell
Hummm ......我得到一个错误信息: 系统事件得到了一个错误:无法获取菜单过程“Firefox”的菜单栏1的栏项“查看”。 – JustBobF 2012-03-03 03:51:25
我用Firefox打开测试过。如果应用程序关闭,则需要添加延迟。这两个账户上都有宾果游戏 – adayzdone 2012-03-03 04:27:15
。非常感谢!!! – JustBobF 2012-03-03 06:32:56