How to set a files 'locked' property?

Jan Schenkel janschenkel at
Wed Sep 25 00:35:01 EDT 2002

Hi Chipp,

Unfortunately it's not as simple as
  set the lockText of file tFile to true

What you can do, is let WinXP do it for you with
  get shell("attrib" && tFile && "-R")

If you ever need to do it on a Mac, I'm sure someone
can tell you the equivalent piece of AppleScript to

Hope this helped,

Jan Schenkel.

"As we grow older, we grow both wiser and more foolish
at the same time"  (De Rochefoucald)

--- Chipp Walters <chipp at> wrote:
> I know there's been discussion here lately on how to
> find out if a file is
> locked in WinXP
> put the detailed files()
> but, how can you turn off the locked property for an
> existing file? Couldn't
> find it in the notes. Thanks for any help.
> -Chipp

Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

More information about the Use-livecode mailing list