Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clicking?



>         How do I click something?  I thought I knew, but it didn't  
>work.  So now I will ask someone who knows!

I'm assuming you mean programmatically.  If you want to click a button for which you have an AppleScript name defined in Interface Builder, it's easy:

--AppleScript name of button is "myButton"
tell button "myButton" of view 1 of scroll view 1 of window 1 to perform action
--result: myButton's on clicked handler is called

See the doc: <http://developer.apple.com/documentation/AppleScript/Reference/StudioReference/sr5_control_suite/chapter_5_section_30.html>

Topher
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Clicking? (From: Patrick Zittle <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.