firefox - 如何以全屏模式打开 Firefox?

标签 firefox applescript fullscreen kiosk-mode

我需要在全屏模式下运行 Lion 的 Mac 上打开 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

关于firefox - 如何以全屏模式打开 Firefox?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9542492/

相关文章:

html - 在 Firefox 中,控制台 "XML Parsing Error: mismatched tag"输入错误

iOS 全屏 Web 应用程序颜色状态栏

java - Selenium Firefox 57 无法连接到二进制/本地主机

javascript - 火狐插件/javascript : get url from bar

applescript - 使用 AppleScript 运行另一个应用程序而不在 Dock 上显示它

macos - 在 MAC 操作系统上,如何获取已放入 Apple 脚本的文件名,以文件名作为 JAR 的参数来启动 JAR

java - Mac OS X 10.6 上来自 Java 的 AppleScript?

Java 全屏图像调整大小?

java - 如何在YouTube( WebView )中使用全屏显示?

javascript - 如何使用脚本向 Firefox 中的存储添加密码?