Hide A File From A Script

Ken Ray kray at sonsothunder.com
Sun Nov 10 14:41:01 EST 2002


You can hide a file on disk in OS X by putting a "." in front of the file
name:

on HideAFile pFilePath
  put pFilePath into tDestPath
  set the itemDel to "/"
  put last item of pFilePath into tFileName
  put "." & tFileName into last item of tDestPath
  rename pFilePath to tDestPath
end HideAFile

In OS 9, you need to set the "invisible bit", which I think would require an
external.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



----- Original Message -----
From: "Bill Lynn" <switchedon at hsj.com>
To: <use-revolution at lists.runrev.com>
Sent: Sunday, November 10, 2002 11:24 AM
Subject: Re: Hide A File From A Script


> >> I'm looking for a way to hide a text file on disk from a script. Can
this be
> >> done using Transcript? If not, is it possible to do with AppleScript?
>
> > Are we talking OS X, OS 9 or both?
>
> Good point, Ken. Both.
>
> Cheers... Bill Lynn
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list