Mailing Lists: Apple Mailing Lists

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

Searching in table view



Hello everyone,

I have a table with a data source and 2 columns. Is it possible to search
for a particular string within the data source and have it return which row
it's in?

For example:

HeaderA   HeaderB
file1     text1
file2     text2
file3     text3
file4     text4


What I'd like to do is to find which row contains "file3" without having to
do a repeat statement looping through every row until it's found. So
something along the lines of:

  set foo to data row of data source theDataSource that contains "file3"

Is that even possible or am I stuck using a repeat loop?

Thanks,
Dan

 _______________________________________________
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



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.