Re: system date

2020-05-04 Thread Jacques Hausser via use-livecode
OK, I restarted the computer and now everything is OK. I probably inadvertently 
did put a little gravel somewhere in the gears… thank you Martin and Matthias 
and sorry for the inconvenience.


> Le 4 mai 2020 à 20:55, Martin Koob via use-livecode 
>  a écrit :
> 
> OK I opened the 'Language and Region' settings panel and clicked on the 
> ‘Advanced’ button and then clicked on the Tab for ‘Dates’
> 
> There is a field with a setting for “Short”  which was 2020-01-05.  I 
> replaced the hyphens with slashes.
> 
> I had to quit and relaunch LiveCode for the change to take effect.  After I 
> had done that the command 'put the system date’ returns '2020/05/04’
> 
> If I click 'Restore Defaults' in the ‘Dates' tab of the advanced 'Language 
> and Region' settings panel my short date format goes back to 2020-05-04.
> 
> Martin
> 
> 
> 
> 
>> On May 4, 2020, at 2:43 PM, Martin Koob via use-livecode 
>>  wrote:
>> 
>> Huh,  I get 2020-05-04 here in Canada.  Not sure what my region settings are.
>> 
>> 
>> Regards,
>> 
>> Martin Koob
>> 
>> 
>> 
>> 
>> 
>>> On May 4, 2020, at 2:39 PM, Jacques Hausser via use-livecode 
>>>  wrote:
>>> 
>>> My region settings are by default. But I would not be surprised if the 
>>> problem comes from Apple.
>>> 
>>>> Le 4 mai 2020 à 20:21, matthias rebbe via use-livecode 
>>>>  a écrit :
>>>> 
>>>> I tried here with DP4 on Mac OS 10.14.6.
>>>> 
>>>> I definitely get 04.05.20 when running your script.
>>>> 
>>>> Either this has to do with 10.15.4 or
>>>> Are you sure your region settings are correct. ;)
>>>> 
>>>> Regards,
>>>> 
>>>> Matthias
>>>> 
>>>> 
>>>> 
>>>> -
>>>> Matthias Rebbe
>>>> Life Is Too Short For Boring Code
>>>> 
>>>>> Am 04.05.2020 um 20:07 schrieb Jacques Hausser via use-livecode 
>>>>> :
>>>>> 
>>>>> Hello everybody,
>>>>> 
>>>>> Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 
>>>>> 10.15.4, and I just discovered that Livecode seems totally deaf to the 
>>>>> words “system date”. EG:
>>>>> 
>>>>> put the date into today
>>>>> convert today to system date
>>>>> put today into fld 1
>>>>> 
>>>>> returns 5/4/20 instead of 04.05.20
>>>>> 
>>>>> Is "system date" deprecated? 
>>>>> ___
>>>>> 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
>>>> 
>>>> 
>>>> ___
>>>> 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
>>> 
>>> ___
>>> 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
>> 
>> ___
>> 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
> 
> ___
> 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

___
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: system date

2020-05-04 Thread Jacques Hausser via use-livecode
My region settings are by default. But I would not be surprised if the problem 
comes from Apple.

> Le 4 mai 2020 à 20:21, matthias rebbe via use-livecode 
>  a écrit :
> 
> I tried here with DP4 on Mac OS 10.14.6.
> 
> I definitely get 04.05.20 when running your script.
> 
> Either this has to do with 10.15.4 or
> Are you sure your region settings are correct. ;)
> 
> Regards,
> 
> Matthias
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 04.05.2020 um 20:07 schrieb Jacques Hausser via use-livecode 
>> :
>> 
>> Hello everybody,
>> 
>> Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 
>> 10.15.4, and I just discovered that Livecode seems totally deaf to the words 
>> “system date”. EG:
>> 
>> put the date into today
>> convert today to system date
>> put today into fld 1
>> 
>> returns 5/4/20 instead of 04.05.20
>> 
>> Is "system date" deprecated? 
>> ___
>> 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
> 
> 
> ___
> 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

___
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


system date

2020-05-04 Thread Jacques Hausser via use-livecode
Hello everybody,

Back to LC after a long time out. I’m using LC 9.6.0(dp 4) on Mac OS 10.15.4, 
and I just discovered that Livecode seems totally deaf to the words “system 
date”. EG:

put the date into today
convert today to system date
put today into fld 1

returns 5/4/20 instead of 04.05.20

Is "system date" deprecated? 
___
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: ANN: Script Editor Refactoring Support

2019-03-20 Thread Jacques Hausser via use-livecode
I had a dream…now it’s real ! Thanks !

Jacques

> Le 20 mars 2019 à 19:40, Mark Wieder via use-livecode 
>  a écrit :
> 
> On 3/20/19 11:31 AM, Matthias Rebbe via use-livecode wrote:
>> Thanks for this great enhancement.
>> The rename handler is something i would have needed yesterday... Took me 
>> some time, but with your enhancement i would have been just some clicks and 
>> some typing.
> 
> Ah... sorry about that... I was going to release it yesterday, but the "Go 
> Back" feature needed a bit more tweaking.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.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

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***

___
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: export imagedata into a file ?

2018-05-08 Thread Jacques Hausser via use-livecode
Sorry, I didn’t read carefully.
But I think that the imageData needs a kind of “frame” to become an image. So 
the simplest way to do it is to populate, for instance, an hidden image with 
the imageData and then export it.

> Le 8 mai 2018 à 16:17, jbv via use-livecode  a 
> écrit :
> 
> Hi list,
> I have a script that starts as follows :
> 
>   put URL "binfile:/myFile.jpg" into tImageData
>   put tImageData into image "Image_test"
>   put the imagedata of image "Image_test" into tImageData
>   -- tImageData processing
> 
> After tImageData is processed, I would like to export
> its content directly into a file.
> I tried :
>   put tImageData into URL "binfile:/test.jpg"
> but the file is considered corrupted and can't be opened.
> 
> I also tried :
>   put tImageData into URL "binfile:/test.jpg" as JPEG
> but it returns an error.
> 
> I know I can set the imagedata of an image to the content
> of tImageData, and then use "export snapshot", but for some
> reasons too long to explain, I would like to follow a different
> path.
> So, How can I export the binary content of tImageData to
> a jpeg or png file that can be opened like any similar
> file ?
> 
> Thanks in advance,
> jbv
> 
> 
> 
> ___
> 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


___
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: export imagedata into a file ?

2018-05-08 Thread Jacques Hausser via use-livecode
Hi jbv

I’m using not the imageData, but the image itself

Export image  “mage_testI” to URL”binfile:/test.jpg” as JPEG

It works

Jacques

Le 8 mai 2018 à 16:17, jbv via use-livecode 
mailto:use-livecode@lists.runrev.com>> a écrit :

Hi list,
I have a script that starts as follows :

  put URL "binfile:/myFile.jpg" into tImageData
  put tImageData into image "Image_test"
  put the imagedata of image "Image_test" into tImageData
  -- tImageData processing

After tImageData is processed, I would like to export
its content directly into a file.
I tried :
  put tImageData into URL "binfile:/test.jpg"
but the file is considered corrupted and can't be opened.

I also tried :
  put tImageData into URL "binfile:/test.jpg" as JPEG
but it returns an error.

I know I can set the imagedata of an image to the content
of tImageData, and then use "export snapshot", but for some
reasons too long to explain, I would like to follow a different
path.
So, How can I export the binary content of tImageData to
a jpeg or png file that can be opened like any similar
file ?

Thanks in advance,
jbv



___
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


___
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

Lynda.com

2018-04-20 Thread Jacques Hausser via use-livecode
We just got Lynda.com available free for faculty and students 
in my University (online learning in every possible field). I looked if they 
have something about liveCode… at first view, I didn’t find anything !
Would be a good place to put some material to teach liveCode and make it a bit 
less confidential, if somebody here is interested…

Jacques

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:  ++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***

___
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