Mailing Lists: Apple Mailing Lists

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

Accessing elements in non-selected tab view items



I can't seem to get to the contents of tab view items, if the particular
tab is not currently selected, at least not in the way I'd like to:

-- this works if the tab is selected, error otherwise
set x to view of tab view item "tab1" of tab view "tabview" of window
"main"
tell x
set contents of text field "text" to "changed"
end tell

-- this works for for both selected and non-selected tabs
tell view of tab view item "tab1" of tab view "tabview" of window "main"
set contents of text field "text" to "changed"
end tell

So the second option works, but I need the first construct for my
script...

Any ideas?

Thanks, Wim


-----
email (home): email@hidden
email (office): email@hidden
http://www.noorderlicht.com * Noorderlicht photofestival
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



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.