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.
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.