Re: click Zoom button
Re: click Zoom button
- Subject: Re: click Zoom button
- From: kai <email@hidden>
- Date: Mon, 14 Nov 2005 22:20:16 +0000
On 14 Nov 2005, at 21:39, Robert Poland wrote:
Is there a way to click the Zoom button of a window other than iKey
or similar other products?
This generates that meaningless catch-all error;
"System Events got an error:
NSReceiverEvaluationScriptError: 4"
tell application "System Events"
tell window 1
click button 2
end tell
end tell
You just need to tell System Events which process the window belongs
to, Robert:
tell application "System Events" to tell process "Finder" (* for
example *)
click button 2 of window 1
end tell
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden