开发者

Code for minimizing application window in Mac?

开发者 https://www.devze.com 2023-01-13 04:19 出处:网络
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

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

精彩评论

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