tags:

views:

14

answers:

2

Hi,

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 would 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!

A: 

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

lucifer
Alternatively, Cocoa might be another option.
lucifer
+1  A: 

Try this applescript:

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