setting file created date in livecode from script
thatkeith at mac.com
Mon Apr 15 06:24:05 EDT 2019
I made a little tool (in LiveCode, natch) for doing this using touch.
there's a link near the bottom of the page to download the LiveCode
On 14 Apr 2019, at 22:52, Stephen Barncard via use-livecode wrote:
> answering my own question: TOUCH
> looks like what I want... gotta love BSD Unix...
> touch -- change file access and modification times
> touch [-A [-][[hh]mm]SS] [-acfhm] [-r file] [-t
> file ...
> The touch utility sets the modification and access times of
> files. If
> any file does not exist, it is created with default permissions.
> By default, touch changes both modification and access times.
> The -a
> -m flags may be used to select the access time or the
> modification time
> individually. Selecting both is equivalent to the default. By
> the timestamps are set to the current time. The -t flag
> ifies a different time, and the -r flag specifies to set the
> of the specified file. The -A flag adjusts the values by a
> full definition can be had by typing MAN TOUCH
> I hope others can use this knowledge..sorry to raise the alarm.
> I'm off to write a handler, which I'll post later if anyone is
> Now I've got to find those EXIF routines, they're around somewhere....
> thanks , self
> this is the kind of stuff that LC is so good for...
> Stephen Barncard - Sebastopol Ca. USA -
> On Sun, Apr 14, 2019 at 2:36 PM Stephen Barncard
> <stephen at barncard.com>
>> Hi Gang,
>> I thought file date change had been a part of livecode for years, but
>> can't find anything in the docs about setting the created or modified
>> in files.
>> I need to do this on the Mac desktop.
>> Why? because several years ago $@$#$@#$@'ing dropbox, without my
>> permission, started changing not only filenames but DATES in a huge
>> of precious photos in a particularly dishonest way -- they wanted my
>> account to fill up quickly so I'd have to "upgrade".
>> I know the EXIF tags still exist inside each file, but all the file
>> had been changed to the date of copying.
>> Dropbox has been increasingly piggish lately - not allowing more than
>> machines on the free account.
>> It's a mess. This does not endear me to these greedy people.
>> I have to write a custom handler to deal with this - there's no app
>> can do this - I don't think.
>> perhaps there's something I can call from the shell - I'd be good
>> Anyone have an idea? Thanks in advance.
>> Stephen Barncard - Sebastopol Ca. USA -
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode