AppleScript:使用 Lion 全屏 [英] AppleScript: Use Lion Fullscreen

查看:25
本文介绍了AppleScript:使用 Lion 全屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple 官方文档中似乎没有任何相关信息.如何让应用程序通过 AppleScript 使用 Lion 的新全屏功能?

There doesn't seem to be any information on this in the official Apple documentation. How do you make an application use Lion's new fullscreen feature via AppleScript?

推荐答案

如果您想在全屏和普通模式之间切换,请使用此提示

if you want to toggle between fullscreen and normal mode use this hint

tell application "iTunes"
    activate
    tell application "System Events" to tell window "iTunes" 
                                          of application process "iTunes"
        click (every button whose description contains "full screen")
    end tell
end tell

这篇关于AppleScript:使用 Lion 全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆