Hugh Senior <[EMAIL PROTECTED]> wrote:
>Is there a way to script the "visible" property of a file under Windows, or
>is a dll required?
Use "shell" function. For example:
on setFileVisibility tPath, TF
# to be able to set hideConsoleWindows back to what it was
put hideConsoleWindows into oldHCW
# convert terms from MetaTalk to MSDOS
# (makes the file visible by default)
if TF = "false" then
put "+H" into TF
else
put "-H" into TF
end if
# prevent the DOS window from showing
set hideConsoleWindows to true
# execute the command
put "attrib " & TF && tPath into commandString
get shell (commandString)
# set the setting back to what it was
set hideConsoleWindows to oldHCW
end setFileVisibility
This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm