File Tools Open&Save File Question

PeMo's picture

I'm trying to work out the Kineme File Tools Open & Save panels functionality - for my purposes I need to open a .txt or .csv file of a list of values, interrogate & visualise them somehow (details aren't important), and then save my altered/selected values to a new file - preferably a .txt or .csv file, rather than a .plist, as I will submit that file to further computation in python (& the .plist contains all sorts of extraneous xml metadata I don't need).

I can open a file fine, but can't work out the save panel - it won't actually create a new file that I can give a 'save as' name to & then save to the file.

Is this a security limitation of Kineme File Tools (the tooltips seem to allude to this)?

I have successfully written to a pre-existing .txt file for output, using Kineme Text File Writer in other comps I've made, but I really want to be able to call up a dialogue box & simply create and save to a new file.

I guess I must be missing something somewhere?? Or perhaps it's best to do this via Xcode & expose the comp to modal dialogues that way...??? I am a total noob to Xcode, but happy to give it a crack. Quartz Builder would be easier it seems, but even that hasn't helped me so far.

Thanks in advance for any tips! :)

Here's an example comp - it 'should' (in my imagination) open a text file (doc1.txt), grab the first value from a list, then be able to save that to a new text file.

PS: running OSX10.9.4, Xcode 5.1.1, QC 4.6 2014 release, Kineme Plugins & Origami.

PreviewAttachmentSize
Open_Save_Experiment.qtz498.11 KB
doc1.txt12 bytes

Scratchpole's picture
Re: File Tools Open&Save File Question

Hey that is very close to what you are trying...I'm not sure what's wrong....

It is a bit odd for me.... When I first load the txt file it shows nothing, then I load a csv file and it shows the txt file.....? When I hit save it brings up the dialogue but fails to write a file.

I will have a fiddle and see if I get anywhere.

PeMo's picture
Re: File Tools Open&Save File Question

Yes, it's odd: I've tried the text file importer & csv importer - they don't seem to worry about suffixes/file types too much, so I assume they are interchangeable (same applies with the climb csv importer plugin, which I often use - a few more features (se: http://www.climbapp.com/plugin/csvimporter/index.html)

In my comp the 3rd structure index member is probably redundant - I'm still getting my head around QC's indexed and keyed structures and how to address them properly. Nevertheless, this should have no impact on writing to a text file.

Let me know how you go - & thanks :) I'll have another crack at it too.