Normal Xcode data sources and MacSQL Framework data sources work quite
differently.
Try this for the table filled through the MacSQl Framework:
set theDS to get data source of table view "top_table" of scroll view
"top_scroll" of window 1
set theContents to item 1 of (get values of sql row 1 of sql result
set of theDS)
display dialog theContents
Philip
On 28 Sep 2006, at 12:36, Rob Stott wrote:
Hi all,
I'm tearing out (what remains of) my hair here - I wonder if anyone
can help me out?
I have a simple interface - one window with two table views one above
the other. The top table view is filled using MacSQL Framework, the
bottom one is filled using a normal Xcode data source. They are
identical in every other way. This is all working fine.
I'm having trouble getting AppleScript to pull information out of the
data sources/table views. I assume this is because the data sources
behave differently in some way I'm not aware of.
I get this error message; Can't make «class datR» 1 of «class cQdS» 1
into type reference. (-1700)
Code sippets are below. Can anyone point out the (probably) dumb
mistake I'm making?
Any help would be greatly appreciated.
Thanks in advance
Rob
--this code works fine on the table view filled by a 'normal' data
source
tell window 1
tell scroll view "bottom_scroll"
tell table view "bottom_table"
set theDS to data source 1
tell theDS
set theRow to data row 1
set theContents to (contents of
data cell 1 of theRow)
display dialog theContents
end tell
end tell
end tell
end tell
--this code doesn't work on the table filled through MacSQL Framework.
tell window 1
tell scroll view "top_scroll"
tell table view "top_table"
set theDS to data source 1
tell theDS
set theRow to data row 1
set theContents to (contents of
data cell 1 of theRow)
display dialog theContents
end tell
end tell
end tell
end tell
_______________________________________________
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