Re: vCard save file format binfile or file?

2020-06-02 Thread Andre Garzia via use-livecode
to be honest, I'd use binfile:// when writing...

On Tue, 2 Jun 2020 at 15:17, Andre Garzia  wrote:

> A decade ago I wrote a vCard library for LiveCode:
>
> https://git.sr.ht/~soapdog/vObjectLib
>
> It uses CRLF and file://, I never had trouble opening the generated vCards
> but I haven't tested this in years.
>
>
>
> On Mon, 1 Jun 2020 at 01:10, kee nethery via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>>
>> > On May 31, 2020, at 4:56 PM, Bill Vlahos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > If I just use URL file to save vCard files I will get different results
>> on Windows vs Macintosh regarding CRLF. VCard files are text files.
>>
>> UTF-8 files.   https://tools.ietf.org/html/rfc6350#section-3.1
>>
>> > The vCard standard requires CRLF as the line format regardless of which
>> platform the data is being written in.
>>
>> Truehttps://tools.ietf.org/html/rfc6350#section-3.2
>>
>> > LiveCode using the URL file command will write the file differently on
>> Windows compared to Mac or Linux.
>>
>> Sure do wish Livecode would let us declare what a “text” file return
>> character or characters was for writing a file. Same as we do with
>> itemdelimiters. Something like:
>>
>> set linedelimiter to U+000D & U+000A
>>
>> > I can build the variable for the vCard and use CRLF instead of RETURN
>> for line endings.
>> >
>> > If I write the file using URL binfile format will it still be a text
>> file that other programs can read?
>>
>> if you give it a .vcf suffix it should work.
>>
>> Kee
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> --
> http://www.andregarzia.com
>
>

-- 
http://www.andregarzia.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: vCard save file format binfile or file?

2020-06-02 Thread Andre Garzia via use-livecode
A decade ago I wrote a vCard library for LiveCode:

https://git.sr.ht/~soapdog/vObjectLib

It uses CRLF and file://, I never had trouble opening the generated vCards
but I haven't tested this in years.



On Mon, 1 Jun 2020 at 01:10, kee nethery via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> > On May 31, 2020, at 4:56 PM, Bill Vlahos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > If I just use URL file to save vCard files I will get different results
> on Windows vs Macintosh regarding CRLF. VCard files are text files.
>
> UTF-8 files.   https://tools.ietf.org/html/rfc6350#section-3.1
>
> > The vCard standard requires CRLF as the line format regardless of which
> platform the data is being written in.
>
> Truehttps://tools.ietf.org/html/rfc6350#section-3.2
>
> > LiveCode using the URL file command will write the file differently on
> Windows compared to Mac or Linux.
>
> Sure do wish Livecode would let us declare what a “text” file return
> character or characters was for writing a file. Same as we do with
> itemdelimiters. Something like:
>
> set linedelimiter to U+000D & U+000A
>
> > I can build the variable for the vCard and use CRLF instead of RETURN
> for line endings.
> >
> > If I write the file using URL binfile format will it still be a text
> file that other programs can read?
>
> if you give it a .vcf suffix it should work.
>
> Kee
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
http://www.andregarzia.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: vCard save file format binfile or file?

2020-05-31 Thread kee nethery via use-livecode

> On May 31, 2020, at 4:56 PM, Bill Vlahos via use-livecode 
>  wrote:
> 
> If I just use URL file to save vCard files I will get different results on 
> Windows vs Macintosh regarding CRLF. VCard files are text files.

UTF-8 files.   https://tools.ietf.org/html/rfc6350#section-3.1

> The vCard standard requires CRLF as the line format regardless of which 
> platform the data is being written in.

Truehttps://tools.ietf.org/html/rfc6350#section-3.2

> LiveCode using the URL file command will write the file differently on 
> Windows compared to Mac or Linux.

Sure do wish Livecode would let us declare what a “text” file return character 
or characters was for writing a file. Same as we do with itemdelimiters. 
Something like:

set linedelimiter to U+000D & U+000A

> I can build the variable for the vCard and use CRLF instead of RETURN for 
> line endings.
> 
> If I write the file using URL binfile format will it still be a text file 
> that other programs can read?

if you give it a .vcf suffix it should work.

Kee


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


vCard save file format binfile or file?

2020-05-31 Thread Bill Vlahos via use-livecode
If I just use URL file to save vCard files I will get different results on 
Windows vs Macintosh regarding CRLF. VCard files are text files.

The vCard standard requires CRLF as the line format regardless of which 
platform the data is being written in. LiveCode using the URL file command will 
write the file differently on Windows compared to Mac or Linux.

I can build the variable for the vCard and use CRLF instead of RETURN for line 
endings.

If I write the file using URL binfile format will it still be a text file that 
other programs can read?

Thanks,
Bill
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode