On Fri, 16 Mar 2001 "Monte Goulding" <[EMAIL PROTECTED]> wrote:

> Does anyone know if you use one .mt script to set another one to executable.
> I'd like to be able to post to the first one the name of the other file and
> have it make this change. In the long run I'd like to post the entire second
> .mt script and its name ot the first .mt script then have it write the file
> and set it to executable.

To set the execute bit of an existing file, you'd have to use
something like:
get shell("chmod +x" & yourfilename) # or maybe "a+x"

You can set the bits of a file you create with a MetaCard script using
the "umask" property.  It works just like the "fileType" property on
the Mac: it sets the characteristics as the file is created.
  Regards,
    Scott

> Regards
> 
> Monte

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to