开发者

Code for minimizing application window in Mac?

I'm wondering whether there is a way to write code for Mac OS 10.5 which will minimize and restore a window. What language wou开发者_如何学编程ld it be in? Could someone please give me an example or direct me to documentation on Apple's developer site I should look at?

Thanks!


Try this applescript:

tell application "Safari"
  set miniaturized of window 1 to true
end tell


Apple | AppleScript

AppleScript is Apples native scripting language. The official link above includes very useful information on how you can get started.

I suspect that the following URL is what you may need. It provides information and sample code for scripting and automation in AppleScript: AppleScript | Scripting and Automation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜