How to save to local file via native file dialogue?
Ralph DiMola
rdimola at evergreeninfo.net
Fri Mar 10 12:04:37 EST 2017
Keith,
'Ask File' will do the trick.
'ask file' is the "save file" complement to 'answer file'
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Keith Clarke via use-livecode
Sent: Friday, March 10, 2017 11:50 AM
To: How to use LiveCode
Cc: Keith Clarke
Subject: How to save to local file via native file dialogue?
Hi Folks,
I’m building a little utility to parse a regular html report file I get into CSV form to slice & dice with Excel.
Input & transformation phases are sorted.
Input processing uses 'answer file' to select a source file via the native file dialogue, set the defaultFolder and load the HTML content via put URL Transform to structured tabular form is neatly handled via chunk replace & filter functions and iteration.
However, I’m struggling to find the syntax needed to save the contents of the output variable / field into a local file via the OS file save dialogue for flexibility. I’m guessing it’s a variant of 'put theContent into URL “file:” & theFolderPathAndName’ but this seems hard-wired.
What trick am I missing here?
Thanks,
Keith..
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list