Mic*_*ers 5 safari applescript osx-mavericks
我需要一个applescript才能以全屏方式打开Safari,以隐藏特立独行者上的工具栏。
听起来很简单,但事实并非如此!
我需要打开野生动物园,然后在全屏模式下打开google,然后隐藏工具栏。
它与下面的示例等效,但对于野生动物园
告诉应用程序“ Google Chrome浏览器”的打开位置“ http://internet.ceo.wa.edu.au/Pages/default.aspx ”结束告诉
使用{command down,shift down} end tell告诉应用程序“ Google Chrome”激活告诉应用程序“系统事件”按键“ f”
可能很简单,如下所示:
tell application "Safari"
activate
if (count of windows) is 0 then -- Remove "if" statement if you don't want to make a new window if there is none
make new document at front
end if
tell application "System Events" to keystroke "f" using {command down, control down}
end tell
Run Code Online (Sandbox Code Playgroud)
不确定是否可以在没有工具栏的情况下完成它。
更新4/4
不知道你能用它做什么,但看看这个程序。如果它按照你想要的方式工作。添加系统事件以使用下拉菜单选择项目。
Barbarian Group 有一个名为“Plainview”的免费软件应用程序,它似乎只是 Webkit 的包装。它的工作原理是“全屏信息亭式演示内容查看器”,类似于 Chrome 演示模式的功能。
无论如何,它是免费下载的,所以尝试没有风险。几乎滚动到此页面的底部: http: //barbariangroup.com
直接下载: http://s3.amazonaws.com/plainviewapp/plainview_1.0.178.zip
| 归档时间: |
|
| 查看次数: |
7900 次 |
| 最近记录: |