I have created a command-line Utility in Objective-C that massages a bunch of records in an SQLite database and generates an NSArray of NSDictionaries. Each dictionary consists of a single NSString object, and then 2 NSArray objects of NSStrings. It looks something like this:
{Name, { array of dates}, {array of dates}}
I understand that NSArray objects are similar to lists, and that NSDictionary objects are similar to records. What I cannot figure out is how to take this list of records that I have created and get that into an AppleScript.
The reason is that I need to use AppleScript to subsequently plug that data into a Microsoft Word Document with a large table. That I already have figured out.
I originally used AS to extract the data from the SQLite database, but as the dbase enlarges, the script takes longer and longer to massage the data into the final form. The command line utility does the massage in under a second. Plus the fact that it has been fun to learn a new tool.
I think my problem comes down to lack of understanding how to generate output from a command line utility. I really only know how to use NSLog to see what is happening, and when I run the utility in Terminal, all the data is displayed on the screen, but when I run the utility in a do shell script, I get a null return.
Anyway, if someone could please point me in the right direction for getting the data generated by the utility into an AS that would be great.