Re: lock and unlock files from script? - Mac options

2016-02-10 Thread [-hh]
Stephen B. wrote: > > I'd be happy with an Applescript solution or something using the > > Shell. faster would be better. thanks for any help. stephen. > > thanks guys. sqb TMHO, such threads should end -- if available -- with a full working solution. Perhaps somebody can use this, for example

Re: lock and unlock files from script? - Mac options

2016-02-10 Thread stephen barncard
DOUBLE thanks hh. I can use all three component parts. I prefer to assert and de-assert to certain files in certain folders rather than toggle the flag. The flag reading tip is a bonus. On Wed, Feb 10, 2016 at 8:14 AM, [-hh] wrote: > TMHO, such threads should end -- if

lock and unlock files from script? - Mac options

2016-02-09 Thread stephen barncard
Hi Gang, Barncard lurking here. I want to lock and unlock files from script on Mac. Currently on Livecode 7.1.2 I know there are various lock modes - I just want the one that users can turn off and on using the 'get info' dialog. I tried cobbling an Applescript method but got an 'execution

Re: lock and unlock files from script? - Mac options

2016-02-09 Thread Phil Davis
Hi Stephen, If I understand correctly, it sounds like you could use the 'chmod' shell command to lock and unlock your files. https://www.google.com/#q=chmod+examples Best - Phil Davis On 2/9/16 12:11 PM, stephen barncard wrote: Hi Gang, Barncard lurking here. I want to lock and unlock

Re: lock and unlock files from script? - Mac options

2016-02-09 Thread Phil Davis
Live and learn! I was unaware of 'chflags'. Thanks Hermann. Phil On 2/9/16 4:26 PM, [-hh] wrote: >From terminal/LC's shell() use: lock with . $ chflags uchg unlock with ... $ chflags nouchg What is interesting in this connection: I got also a "compile error" from LC's "do as

Re: lock and unlock files from script? - Mac options

2016-02-09 Thread [-hh]
>From terminal/LC's shell() use: lock with . $ chflags uchg unlock with ... $ chflags nouchg What is interesting in this connection: I got also a "compile error" from LC's "do as applescript" using a script that works from Applescript's Script Editor. MacOS 10.11.3

Re: lock and unlock files from script? - Mac options

2016-02-09 Thread [-hh]
Hi all, these flowers are not for me. Here's my secret: Simon Sheppard’s website ss64.com Extremly fast and *very* competent. === Hermann ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: lock and unlock files from script? - Mac options

2016-02-09 Thread Phil Davis
I can smell them from here... smells fishy. Or maybe rotten, if Hermann is in Denmark. ;-) On 2/9/16 4:53 PM, [-hh] wrote: Hi all, these flowers are not for me. Here's my secret: Simon Sheppard’s website ss64.com Extremly fast and *very* competent. === Hermann

Re: lock and unlock files from script? - Mac options

2016-02-09 Thread Phil Davis
I looked at the web site below and it makes sense now. Guess I'm not used to such flowery language. Phil On 2/9/16 4:59 PM, Phil Davis wrote: I can smell them from here... smells fishy. Or maybe rotten, if Hermann is in Denmark. ;-) On 2/9/16 4:53 PM, [-hh] wrote: Hi all, these flowers

Re: lock and unlock files from script? - Mac options

2016-02-09 Thread stephen barncard
On Tue, Feb 9, 2016 at 12:11 PM, stephen barncard < stephenrevoluti...@barncard.com> wrote: > I'd be happy with an Applescript solution or something using the Shell. > faster would be better. > > thanks for any help. > > stephen. > thanks guys. sqb Stephen Barncard - Sebastopol Ca. USA -

Re: lock and unlock files from script? - Mac options

2016-02-09 Thread [-hh]
Phil D. wrote: > I looked at the web site below and it makes sense now. Guess I'm not > used to such flowery language. Phil > > On 2/9/16 4:59 PM, Phil Davis wrote: > > I can smell them from here... smells fishy. Or maybe rotten, if > > Hermann is in Denmark. > > ;-) > > On 2/9/16 4:53 PM,

Re: lock and unlock files from script? - Mac options

2016-02-09 Thread Phil Davis
Hi Hermann, I agree - the ss64.com site is quite amazing! Unfortunately my effort at making a joke was not. At first I suspected your email account had been hacked and the "Here's my secret" message was pointing to a web site that sells something no one needs - the wording was similar to