Re: setting file created date in livecode from script

2019-04-15 Thread Keith Martin via use-livecode

Hi Stephen,

I made a little tool (in LiveCode, natch) for doing this using touch. 
It's here: 
http://panoramaphotographer.com/software/likeaversion/index.html and 
there's a link near the bottom of the page to download the LiveCode 
stack.


k


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

NAME

 touch -- change file access and modification times


SYNOPSIS

 touch [-A [-][[hh]mm]SS] [-acfhm] [-r file] [-t 
[[CC]YY]MMDDhhmm[.SS]]


   file ...


DESCRIPTION

 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

and

 -m flags may be used to select the access time or the 
modification time


 individually.  Selecting both is equivalent to the default.  By
default,

 the timestamps are set to the current time.  The -t flag 
explicitly

spec-

 ifies a different time, and the -r flag specifies to set the 
times

those

 of the specified file.  The -A flag adjusts the values by a 
specified


 amount.
.

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 
interested



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 -
mixstream.org


On Sun, Apr 14, 2019 at 2:36 PM Stephen Barncard 


wrote:


Hi Gang,

I thought file date change had been a part of livecode for years, but 
I
can't find anything in the docs about setting the created or modified 
dates

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 
swath
of precious photos in  a particularly dishonest way -- they wanted my 
free

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 
dates

had been changed to the date of copying.
Dropbox has been increasingly piggish lately - not allowing more than 
3

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 
that

can do this - I don't think.

perhaps there's something I can call from the shell - I'd be good 
with

that.

Anyone have an idea? Thanks in advance.

sqb
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


___
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 file created date in livecode from script

2019-04-15 Thread James At The Hale via use-livecode
If you are looking for an existing app the folks at publicspace have what I 
think you need
http://www.publicspace.net/ABetterFinderAttributes/index.html

Although I haven’t had a need for this particular app I have used a companion 
app (A BetterFinder Renamer) for years and it has worked flawlessly saving me 
hours of time.

James

___
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 file created date in livecode from script

2019-04-15 Thread Stephen Barncard via use-livecode
Thank you James - I have licensed  all the 'Better' Apps for over 10 years
but I didn't think they were capable of
1. Reading the EXIF date
2. AND setting the Created Date and time of the file with formatted
information gained from the EXIF info
3. AND renaming the filename of that file with formatted information gained
from the EXIF info
*in one operation*

please tell me if I'm wrong - perhaps this could be done in multiple steps
with BETTERs...

I'm trying to set up my photo archive in a way that keeps all the images in
hierarchal folders of Year and month
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Mon, Apr 15, 2019 at 3:14 AM James At The Hale via use-livecode <
use-livecode@lists.runrev.com> wrote:

> If you are looking for an existing app the folks at publicspace have what
> I think you need
> http://www.publicspace.net/ABetterFinderAttributes/index.html
>
> Although I haven’t had a need for this particular app I have used a
> companion app (A BetterFinder Renamer) for years and it has worked
> flawlessly saving me hours of time.
>
> James
>
> ___
> 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: Saving a tab formatted field to a file and retaining its formatting

2019-04-15 Thread Bob Sneidar via use-livecode
Why? I already have that for Mac via Applescript and Javascript. You can also 
populate a .fdf file if it's properly formatted, and the PDF is configured to 
access it upon opening. Also there is the qrtPDFLib. 

Bob S


> On Apr 9, 2019, at 09:00 , Robert J. Earp via use-livecode 
>  wrote:
> 
> RogerG and I are currently mousing around creating a LC tool to output a 
> fields content to .pdfIt’s looking promising and we’ll let you know of 
> our success or not !!
> 
> best, Bob…
> 
> Bob Earp - White Rock, BC

___
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

AutoUpdater

2019-04-15 Thread Terence Heaford via use-livecode
Why does LiveCode’s AutoUpdater run even though it is turned off in preferences?


Thanks

Terry
___
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: Best strategy for dragging objects in an out of groups?

2019-04-15 Thread Bob Sneidar via use-livecode
Navigator by Geoff Canyon  is working fairly well for me. 

Bob S


> On Apr 11, 2019, at 12:55 , Michael Kristensen via use-livecode 
>  wrote:
> 
> Hi there
> 
> What would be the best strategy for dragging objects in and out of groups?
> 
> If anyone has a stack that demonstrate that it would be nice
> 
> else
> 
> just explain in plain words what you think is the best strategy.
> 
> 
> Thanks
> Michael
> 
> PS While I write this Im thinking that maybe RELAYER in a mouseMove handler 
> could be used.


___
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: Upcoming MacOS 14.5 with software “notarization” requirements

2019-04-15 Thread Richmond via use-livecode
The frightening thing about this is that Microsoft produce a fairly 
shoddy product, and as Linux has signally
failed to displace Microsoft from world dominator, it will become ever 
worse and shoddier without

any healthy competition.

Richmond.

On 15.04.19 19:52, Bob Sneidar via use-livecode wrote:

My opinion, unasked for as it is, this is just another bullet in the foot of 
Apple, and they don't have many toes left.

Bob S



On Apr 12, 2019, at 21:53 , kee nethery via use-livecode 
 wrote:

My understanding from conversations with people who should know is that apps 
that have already been approved by you on your macOS computer and are logged in 
your computer’s gatekeeper system to be allowed to run, will continue to be 
allowed to run when you update your OS. New versions and new apps will need to 
be notarized.

Kee Nethery

___
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 file created date in livecode from script

2019-04-15 Thread Stephen Barncard via use-livecode
Thank you James, Richard, Alex, and Bob for your replies.

As it turns out, James' suggestion was a good one and version 6 of "A
Better Finder Rename" does indeed to appear to do what I want.
In connection with Public Space's  companion
folder utility, I can do it all without writing a line of code.

It would have been a nice exercise in Livecode programming but  I need to
use my time towards the other things I need to do...
Comparing what I charge for my time VS the hours the Public Space person
put into his code the fees are miniscule..

sqb
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Mon, Apr 15, 2019 at 3:14 AM James At The Hale via use-livecode <
use-livecode@lists.runrev.com> wrote:

> If you are looking for an existing app the folks at publicspace have what
> I think you need
> http://www.publicspace.net/ABetterFinderAttributes/index.html
>
> Although I haven’t had a need for this particular app I have used a
> companion app (A BetterFinder Renamer) for years and it has worked
> flawlessly saving me hours of time.
>
> James
>
> ___
> 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 file created date in livecode from script

2019-04-15 Thread Richard Gaskin via use-livecode

Bob Sneidar wrote:

> And as always my disclaimer for NextCloud: Once you begin syncing your
> local files to a NextCloud server, the server BECOMES THE MASTER!
> Unsyncing a particular subfolder in the future has the particularly
> henious effect of DELETING YOUR LOCAL FOLDER! Turning sync back on for
> that folder will restore it (assuming you have not burned the
> NextCloud device in a holy ritual as the invention of hellish forces
> beyond your control, before doing so.)

Recent versions provide more explicit guidance on that:
https://help.nextcloud.com/t/unchecked-folders-will-be-removed-from-your-file-system/12335/9

While it's true with Nextcloud, it's really a generic challenge any 
folder sync program will face if they provide folder-level control over 
what gets synced.  The discussion linked to above explores that in detail.


Some folder sharing services shrug their shoulders on this by just not 
allowing you any control over sub-folders at all. You're required to 
share one folder, and everything within it is always synced, and you 
can't choose to do anything else -- no one can be confused by a feature 
that doesn't exist. :)


Nextcloud is among the few offering fine-grained control over which 
folders get synced and which ones don't.


But as with the rest of life, with great power comes great 
responsibility.  Helpful to read the manual on things involving deletes 
before committing.  And for busy people recent versions provide guidance 
on that when the checkbox is unchecked, so you don't even need to RTFM.


And with any backup metyhods -- Nextcloud, commercial cloud services, 
Time Machine, local rsync to a portable drive, any of them -- never rely 
on just one.  Each has its own strengths and weaknesses, and ideally you 
want your data not only redundantly backed up, but backed up using 
systems of different *types*.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Upcoming MacOS 14.5 with software “notarization” requirements

2019-04-15 Thread Bob Sneidar via use-livecode
My opinion, unasked for as it is, this is just another bullet in the foot of 
Apple, and they don't have many toes left. 

Bob S


> On Apr 12, 2019, at 21:53 , kee nethery via use-livecode 
>  wrote:
> 
> My understanding from conversations with people who should know is that apps 
> that have already been approved by you on your macOS computer and are logged 
> in your computer’s gatekeeper system to be allowed to run, will continue to 
> be allowed to run when you update your OS. New versions and new apps will 
> need to be notarized.
> 
> Kee Nethery

___
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: Re: Upcoming MacOS 14.5 with software “notarization” requirements

2019-04-15 Thread Richard Gaskin via use-livecode

Richmond wrote:
The frightening thing about this is that Microsoft produce a fairly 
shoddy product, and as Linux has signally failed to displace

Microsoft from world dominator, it will become ever worse and
shoddier without any healthy competition.


If we limit our view of computing to desktop OSes, that's definitely true.

Microsoft had a 92% market share before more than a dozen jurisdictions
around the world found them guilty of multiple antitrust violations. 
Now after all these years of legal "remedies" from those trials, Windows 
still has an 86% share.


This may be a cautionary tale as we look ahead at new laws being 
considered to protect people from the de facto monopolies of the 
Information Industrial Complex, the big five that control nearly 
everything in the infosphere:  Facebook, Twitter, Google, Apple, and Amazon.


While we wait for laws to catch up to modern business, and reflect on 
the self-evident inadequacy of existing antitrust laws, let's step 
outside the desktop to look at the scope of modern computing today:


Phones w/Android Linux: 82%
Tablets w/Android Linux: 73%
Embedded systems w/Linux: ~80+%
Servers w/Linux: ~60+%
Top 500 supercomputers w/Linux: 99%

On the desktop, both Linux and Apple are niche players in a 
Microsoft-dominated world.


But beyond the desktop, Linux has become the de facto standard of modern 
computing.


If nothing else, being a developer in the 21st century increasingly 
means building client-server systems.  Familiarity with Linux is a 
valuable skillset that enables cloud services for your client software 
regardless which OSes those clients run on.


There's a reason Apple had a booth at the SoCal Linux Expo: hiring. They 
sell Macs snd iPhones to access data and services run on Linux server farms.


And the most popular OS on Microsoft Azure?  Ubuntu, of course.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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


Encrypted standalones

2019-04-15 Thread J. Landman Gay via use-livecode
Is there a reason we can't encrypt the main stack in standalone settings 
when building for mobile?


I can set set a password if I uncheck the mobile app options, set the 
password, then re-enable mobile builds, and the password remains. I'm 
not sure if it is actually used though when building for mobile. Anyone 
know?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: setting file created date in livecode from script

2019-04-15 Thread Bob Sneidar via use-livecode
And as always my disclaimer for NextCloud: Once you begin syncing your local 
files to a NextCloud server, the server BECOMES THE MASTER! Unsyncing a 
particular subfolder in the future has the particularly henious effect of 
DELETING YOUR LOCAL FOLDER! Turning sync back on for that folder will restore 
it (assuming you have not burned the NextCloud device in a holy ritual as the 
invention of hellish forces beyond your control, before doing so.) 

Many complaints about it, some workarounds which involve editing some config 
file or other in an SSL terminal session, which by the way is turned off by 
default and you have to go find out how to turn it on, which as I recall means 
installing some new modules or other. 

That being said, as long as you are aware of these limitations and plan which 
specific folders you want to backup beforehand, (and by the way don't have any 
large files like VM's that change regularly in any of those folders because it 
takes an inordinate of time to do so) you should be fine. 

Bob S


> On Apr 14, 2019, at 22:01 , Richard Gaskin via use-livecode 
>  wrote:
> 
> 4. You can liberate yourself:  https://nextcloud.com/
> 
> I met the project founder, Frank Karlitschek, when we had him speak at UbuCon 
> in Pasadena a few years ago.  Great guy, great team, all super passionate 
> about free and open source software, and leaving the user in control of their 
> cloud services.
> 
> More than just file sharing with one of the best sync mechanisms I've ever 
> seen, it also includes many dozens of add-on apps for everything from team 
> management to music streaming to video chat and more.


___
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: Encrypted standalones

2019-04-15 Thread J. Landman Gay via use-livecode
I take that back. If I turn Android builds back on, close Standalone 
Settings, and re-open it, the password is gone. So, we can't protect 
Android mainstacks?


Android apps can be distributed through private web sites, and without 
any encryption they would be easier to hack. I understand that I can set 
the password manually, but it's much easier not to worry about it during 
development and still be assurred it will be set on a build.


If there's a reason we can't do that, okay. If there isn't a reason, 
I'll put in a request for it.


On 4/15/19 1:10 PM, J. Landman Gay via use-livecode wrote:
Is there a reason we can't encrypt the main stack in standalone settings 
when building for mobile?


I can set set a password if I uncheck the mobile app options, set the 
password, then re-enable mobile builds, and the password remains. I'm 
not sure if it is actually used though when building for mobile. Anyone 
know?





--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: Encrypted standalones

2019-04-15 Thread Richard Gaskin via use-livecode

J. Landman Gay wrote:

> I take that back. If I turn Android builds back on, close Standalone
> Settings, and re-open it, the password is gone. So, we can't protect
> Android mainstacks?
>
> Android apps can be distributed through private web sites, and without
> any encryption they would be easier to hack. I understand that I can
> set the password manually, but it's much easier not to worry about it
> during development and still be assurred it will be set on a build.
>
> If there's a reason we can't do that, okay. If there isn't a reason,
> I'll put in a request for it.

It may be that the password isn't being set, or it may be a UI bug in 
which the password is set but just isn't being displayed.


You can determine which is the case with a quick test build that does 
something like:


   answer line 10 of the script of this stack

If the standalone can get the script, it's not encrypted it.  If it 
complains, you're fine and it's just a UI bug.


Either way, once the nature of the problem is determined a bug report 
would be helpful.  It may be that some of the recent work on the 
Standalone Builder caused this regression, and reporting it while it's 
fresh in the team member's head will likely yield a quick fix.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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