• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: click Zoom button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >click Zoom button (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Set Contents not working
  • Next by Date: Re: Calling a handler from inside a handler
  • Previous by thread: click Zoom button
  • Next by thread: Scripting M$ Visio?
  • Index(es):
    • Date
    • Thread