我需要一个applescript才能以全屏方式打开Safari浏览器,以隐藏特立独行者上的工具栏 [英] i need an applescript to open safari in full screen an to hide the toolbar on mavericks
问题描述
我需要一个applescript才能以全屏方式打开Safari浏览器,以隐藏特立独行者上的工具栏.
I need an applescript to open safari in full screen an to hide the toolbar on mavericks.
听起来很简单,但事实并非如此!
it sounds easy but it isnt!
我需要打开Safari,然后以全屏模式打开google,然后隐藏工具栏.
i need to open safari then open google in full screen mode an then hide the toolbar.
与下面的示例等效,但对于野生动物园
it would be the equivilent to the below sample but instead for safari
告诉应用程序"Google Chrome浏览器" 打开位置" http://internet.ceo.wa.edu.au/Pages/default.aspx " 结束告诉
tell application "Google Chrome" open location "http://internet.ceo.wa.edu.au/Pages/default.aspx" end tell
告诉应用程序"Google Chrome"激活 告诉应用程序系统事件" 使用{命令下移,下移}击键"f" 结束告诉
tell application "Google Chrome" to activate tell application "System Events" keystroke "f" using {command down, shift down} end tell
推荐答案
可能很简单:
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
不确定是否可以完全不使用工具栏.
Not sure if you can make it with no toolbar at all.
更新4/4
不确定您可以使用它做什么,但请看一下该程序.如果它以您想要的方式工作.添加系统事件以使用下拉菜单选择项目.
not sure what you can do with it but look into this program. If it works the way you want. Add a system events to use the drop downs to select the item.
Barbarian Group有一个名为"Plainview"的免费软件,它似乎只是Webkit的包装.它像Chrome演示模式一样,充当全屏信息亭风格的演示内容查看器".
The Barbarian Group has a freeware app called "Plainview", which seems to be just a wrapper around Webkit. It works as a "Fullscreen kiosk-style presentation content viewer", similar to what Chrome presentation mode does.
无论如何,它是免费下载的,因此尝试时没有风险.滚动到此页面的底部: http://barbariangroup.com
Anyways, it's a free download, so no risk in trying. Scroll almost to the bottom of this page: http://barbariangroup.com
直接下载: http://s3.amazonaws.com/plainviewapp/plainview_1.0.178.zip
这篇关于我需要一个applescript才能以全屏方式打开Safari浏览器,以隐藏特立独行者上的工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!