Unable to fetch table cell data
Unable to fetch table cell data
- Subject: Unable to fetch table cell data
- From: Ken Tozier <email@hidden>
- Date: Thu, 7 Apr 2005 18:11:12 -0400
Hi all
I'm sure this will be an easy one but I've been trying for two hours and can't seem to fetch data from a table in my app. Could someoned point out what I'm doing wrong?
I got the data source working and filling in a one column table in my ApleScript Studio application but when I click on a row, my "
on selection changed theObject" handler always returns "NSCannotCreateScriptCommandError (10)".
Here's how the "files" column is defined in my "will open" window routine
on will open theObject
set search_results to data source of table view "search_results" of scroll view "search_results" of theObject
tell search_results
make new data column at the end of the data columns with properties {name:"files"}
end tell
end will open
Here's how I'm attempting to get the contents of the data in the selected row:
on selection changed theObject
if name of theObject is "search_results" then
set file_name to contents of data cell "files" of selected row of theObject
end
end
I'm able to get the selection index (so I know I'm close) like so:
on selection changed theObject
if name of theObject is "search_results" then
set row_index to selected row of theObject
display dialog row_index
-- this always returns a valid index
end
end
I just can't seem to figure out the correct incantation for the contents property of the "files" cell of selected rows.
Thanks for any help
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden