我需要一个applescript来打开safari的全屏和隐藏工具栏上的mavericks。
这听起来很简单,但事实并非如此!
我需要打开safari,然后在全屏模式下打开google,然后隐藏工具栏。
它等同于下面的示例,但不适用于safari
告诉应用程序"Google Chrome“打开位置"http://internet.ceo.wa.edu.au/Pages/default.aspx”结束告诉
使用{command down,shift down} end tell激活应用程序"Google Chrome“激活tell应用程序”系统事件“按键"f”
发布于 2017-04-03 03:27:38
简单的方法:
set MyApps to {"Google Chrome", "Skype", "Finder"}
repeat with MyApp in MyApps
tell application MyApp
activate
delay 3
tell application "System Events" to tell process MyApp
set value of attribute "AXFullScreen" of window 1 to true
end tell
end tell
end repeat
https://stackoverflow.com/questions/22801733
复制相似问题