How to Do: Download per http
Paul Dupuis
paul at researchware.com
Thu Mar 31 15:16:59 EDT 2022
On 3/31/2022 3:00 PM, Hillen Richard via use-livecode wrote:
> Hello,
>
> My Mac is by usb connected to an iPhone, on which is running the data-aggregator Phybox.app and aggregates the sensor-data of the internal acceleration-sensor.
>
> On Mac, when I write into the Safari address bar
> "http://192.168.178.66/export?format=1“,
> I receive the sampled data in a .xls-file by download from the iPhone-app.
>
> I would like to download this file by LiveCode. But I have no plan, how to do it.
>
> May you help? I am very grateful for tips.
>
> Richard.
>
I think you can do:
put URL "http://192.168.178.66/export?format=1" into URL
("binfile:"&tLocalFile) -- where the variable tLocalFile contains the
file path to a new .xls file, such as
"/Users/Fred/Documents/mySensorData.xls"
More information about the use-livecode
mailing list