我需要在全屏模式下运行 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/