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: Searching in table view



Try:
set theRows to every data row of theDataSource whose content of data cell 1 of it contains "file3"
This should return all data rows which match the search


Andreas


On 28.07.2005, at 21:12, Dan Day wrote:

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 (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/kiel% 40spherico.com


This email sent to email@hidden


_______________________________________________ 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: 
 >Searching in table view (From: Dan Day <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.