Re: Setting Creation Date of file to a past date?

2021-03-14 Thread matthias rebbe via use-livecode
Windows unfortunately does not include such a command line tool, but it should 
be possible to do that with a powershell command which is executed with the 
Shell() function.

so for example this command here

put shell("powershell (ls c:/users/matthias/test.txt).CreationTime = get-date 
2019-12-24-00:00")

would change the creation date of the file c:/users/matthias/test.txt) to the 
24th December 2019 at 00:00

If you want to change the last modification time instead of the creation time 
then use  the parameter LastWriteTime instead of CreationTime

put shell("powershell (ls c:/users/matthias/test.txt).LastWriteTime = get-date 
2019-12-24-00:00")

-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 14.03.2021 um 23:28 schrieb Phil Davis via use-livecode 
> :
> 
> On Mac or Linux you can use the "touch" shell command - not sure if it's 
> available on Windows. You can download the "Shell Command Help" LC plugin to 
> simplify access to info about it.
> 
> Phil Davis
> 
> 
> On 3/14/21 1:04 PM, Michael Kristensen via use-livecode wrote:
>> Hi there
>> 
>> I want to create/export some images from Livecode to fit into a slideshow 
>> that is sorted by creation date.
>> 
>> It means that the files I export shall have a creation date of the past. So 
>> that when they are put into the folder of the slideshow, the images are 
>> placed automatically at the desired places.
>> 
>> How would you go about to set the creation date of a file to a date in the 
>> past with Livecode (maybe with the help of shell or applescript)
>> 
>> Thanks
>> Michael
>> ___
>> 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
>> 
> 
> -- 
> Phil Davis
> 503-307-4363
> 
> 
> ___
> 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: Setting Creation Date of file to a past date?

2021-03-14 Thread Phil Davis via use-livecode
On Mac or Linux you can use the "touch" shell command - not sure if it's 
available on Windows. You can download the "Shell Command Help" LC 
plugin to simplify access to info about it.


Phil Davis


On 3/14/21 1:04 PM, Michael Kristensen via use-livecode wrote:

Hi there

I want to create/export some images from Livecode to fit into a slideshow that 
is sorted by creation date.

It means that the files I export shall have a creation date of the past. So 
that when they are put into the folder of the slideshow, the images are placed 
automatically at the desired places.

How would you go about to set the creation date of a file to a date in the past 
with Livecode (maybe with the help of shell or applescript)

Thanks
Michael
___
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



--
Phil Davis
503-307-4363


___
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: Printing borked for LC Linux?

2021-03-14 Thread JeeJeeStudio via use-livecode
I understand, for me no issue. But for a novice, or an elderly someone 
with very minor knowledge about computers that is already an obstacle. 
They can find the print icon, that's about it.


Op 12-3-2021 om 01:20 schreef Bob Sneidar via use-livecode:

As a print device specialist, I can tell you that printing directly from a web 
browser, be it a PDF or a web page or anything, is problematic. It is ALWAYS 
better to produce a PDF then print from a real PDF product. Web browsers give 
you printing as an afterthought. “Oh you want to print too?? Uh… okay here you 
go.”

Bob S


On Mar 11, 2021, at 12:25 PM, JeeJeeStudio via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Not just LC.

If you try to print a Gmail message in Firefox on Ubuntu Mate, then it creates 
also a pdf which is not getting printed.

Doing the same in chrome and it prints correct.

Printing from Firefox to pdf, then open the pdf in the standard pdf reader, it 
prints also correct.

This was with a Canon inkjet, but there are also issues with other brands. In 
this it looks like Firefox is doing something weird.

___
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


Setting Creation Date of file to a past date?

2021-03-14 Thread Michael Kristensen via use-livecode
Hi there

I want to create/export some images from Livecode to fit into a slideshow that 
is sorted by creation date.

It means that the files I export shall have a creation date of the past. So 
that when they are put into the folder of the slideshow, the images are placed 
automatically at the desired places.

How would you go about to set the creation date of a file to a date in the past 
with Livecode (maybe with the help of shell or applescript)

Thanks
Michael
___
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: How to escape wildcard chars - and find the offset of a '?' in a URL?

2021-03-14 Thread BT via use-livecode
Solved! Thanks for responding & testing this Håkan.

I'm glad to hear that the ‘?’ is a regular character in this context and it’s 
the usual 'pilot error’! Tracing backwards I spotted a stray extra quote in the 
line defining tURL, which wasn’t rejected on save. 

I’ll be glad when I can get back to a colour IDE - it’s so hard to spot syntax 
errors in the monochrome script editor I see with 9.6.1 on Big Sur.  

Cheers,
Keith

> On 14 Mar 2021, at 16:36, ha...@exformedia.se wrote:
> 
> Hmm, strange! For me it works without problems:
> 
> put "https://www.mysite.com/?some=parameters=folllow; into tURL
> put offset("?", tURL)
> 
> Returns 24
> 
> :-Håkan
> On 14 Mar 2021, 17:29 +0100, BT via use-livecode 
> , wrote:
>> Hi folks,
>> What’s the correct the syntax needed to escape a question mark so that its 
>> offset can be found in a URL string?
>> 
>> I get zero returned by put offset(“?”, tURL) and put offset( "?\",tURL) and 
>> put offset( numToCodepoint(Ux003F),tURL) throws errors.
>> 
>> The docs & forums cover escaping quotes but not wildcard characters.
>> 
>> Thanks in advance for any steer.
>> Best,
>> Keith
>> ___
>> 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: How to escape wildcard chars - and find the offset of a '?' in a URL?

2021-03-14 Thread Mark Wieder via use-livecode

On 3/14/21 9:27 AM, BT via use-livecode wrote:

Hi folks,
What’s the correct the syntax needed to escape a question mark so that its 
offset can be found in a URL string?

I get zero returned by put offset(“?”, tURL) and put offset( "?\",tURL) and put 
offset( numToCodepoint(Ux003F),tURL) throws errors.


Works for me too, but...

are those 'smart quotes' in your first example? That may be the problem.

--
 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


Re: How to escape wildcard chars - and find the offset of a '?' in a URL?

2021-03-14 Thread Håkan Liljegren via use-livecode
Hmm, strange! For me it works without problems:

put "https://www.mysite.com/?some=parameters=folllow; into tURL
put offset("?", tURL)

Returns 24

:-Håkan
On 14 Mar 2021, 17:29 +0100, BT via use-livecode 
, wrote:
> Hi folks,
> What’s the correct the syntax needed to escape a question mark so that its 
> offset can be found in a URL string?
>
> I get zero returned by put offset(“?”, tURL) and put offset( "?\",tURL) and 
> put offset( numToCodepoint(Ux003F),tURL) throws errors.
>
> The docs & forums cover escaping quotes but not wildcard characters.
>
> Thanks in advance for any steer.
> Best,
> Keith
> ___
> 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


How to escape wildcard chars - and find the offset of a '?' in a URL?

2021-03-14 Thread BT via use-livecode
Hi folks,
What’s the correct the syntax needed to escape a question mark so that its 
offset can be found in a URL string?

I get zero returned by put offset(“?”, tURL) and put offset( "?\",tURL) and put 
offset( numToCodepoint(Ux003F),tURL) throws errors.

The docs & forums cover escaping quotes but not wildcard characters.

Thanks in advance for any steer.
Best,
Keith
___
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