Mailing Lists: Apple Mailing Lists

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

Proper syntax for using perform action on tab view items



I'm trying to programmatically call the 'on selected tab view item' action when a user presses a button but can't seem to get the syntax quite right.  In my application, the code reads as follows:

on selected tab view item theObject tab view item tabViewItem

My tab view is called "tabViewMain" and individual tab view items are named things such as "tabVideo"

I've tried the following:

set test to tab view item "tabvideo" of tab view "tabViewMain" of window "HarmonyMain"
tell test to perform action

but I get an "NSReceiversCantHandleCommandScriptError" error.

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

This email sent to 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.