Re: How to maximize Safari windows?
Re: How to maximize Safari windows?
- Subject: Re: How to maximize Safari windows?
- From: Philip Aker <email@hidden>
- Date: Wed, 07 May 2008 14:53:11 -0700
On 08-05-07, at 14:11, Robert Poland wrote:
How can this begin to work if Firefox doesn't even have a dictionary?
Any application can be made minimally scriptable by setting the "NSAppleScriptEnabled" key of its Info.plist file to string "YES" (or equivalent boolean 'Yes').
Secondly, it responds to 'size' and 'position' for windows when controlled by System Events. If you want dynamic instead of hard-wired use the 'click' command:
try set apli to "Firefox" tell application "System Events" to tell application process apli tell first window --set size to {1622, 1000} --set position to {0, 22} click button 2 end tell set frontmost to true end tell on error beep end try
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden