Mac Help Forums


Reply
Thread Tools Display Modes

Table View Data Source

 
New Member
Join Date: Feb 2006
Location: Ames, IA
Posts: 1
 
      21st February 2006
I'm creating a small ASStudio application to convert some files to a different format. I have it so I can drag the files into a table view then I want to be able to loop through the contents of the table view for each file listed. I originally had the program working on my machine (10.4) and tested it on another machine (10.2), but when I tried it on a 10.3 machine it gave me a NSCannotCreateScriptCommandError(10) Error. I was able to track down the error to three lines of code.

I was using the follow code to get the contents of the table view for that version:

set tableView to table view "files" of scrolll view "table1"
set returns records of data source of tableView
set theDataSource to content of tableView

I'm thinking that I need to use data source instead of content or something similar but for the life of me I just can't figure it out. Either way I need a solution that will work on 10.2, 10.3, and 10.4. If anyone has any advice or ideas I would very grateful. Thanks - Mark.
 
Reply With Quote
 
 
 
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      21st February 2006
Hi Mark and welcome !

Can I ask what version of Xcode you are using ?

If you want to send me the Xcode project I would gladly have a look at it for you.

The error code you are getting menas "the application received an invalid or unrecognized Apple event"... not that helps much !

I'll have a think when I'm a bit more awake tomorrow !

regards

Ric
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create clickable list in table view? Steffen AppleScript 3 16th October 2008 09:45 PM
Undo with table view and array controller Ulrich Hobelmann Programmer Help 2 4th January 2007 07:39 AM
Connecting a table view... Dale Stanbrough Programmer Misc 1 2nd March 2005 08:56 AM
Managing drag and drop within a table view Jacques Lacroute AppleScript 1 20th December 2003 01:20 AM
AS Studio - Table View x AppleScript 5 9th November 2003 12:01 AM


All times are GMT +1. The time now is 08:32 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Unable to log in to websites
AMonty20 (2 Hours Ago, 05:52 PM)

Add Different Speech Commands
bae_22 (3 Hours Ago, 04:40 PM)

Login (2 macs) passwords spontaniously changed?
Roger Vaught (5 Hours Ago, 03:31 PM)

Best car charger or inverter for Macbook Pro?
imeme87 (5 Hours Ago, 03:22 PM)

New book about Steve Jobs << take part in it!
Arjan (10 Hours Ago, 09:37 AM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51