lock and unlock files from script? - Mac options

Phil Davis revdev at pdslabs.net
Tue Feb 9 15:19:40 EST 2016


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 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 error'.   I
> tried to modify the Applescript that opens folders.
>
> I'd be happy with an Applescript solution or something using the Shell.
> faster would be better.
>
> thanks for any help.
>
> stephen.
>
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
> _______________________________________________
> use-livecode mailing list
> use-livecode at 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





More information about the use-livecode mailing list