Folder problem

Jan Schenkel janschenkel at yahoo.com
Thu Jul 4 15:24:01 EDT 2002


Hi Yves,

As MacOSX is basically Unix, a file starting with a
dot is invisible. So you could apply a filter such as

  put the files into theFiles
  filter the lines of theFiles with "[a-Z]"

Hope this helped a bit,

Jan Schenkel.

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

--- Yves Coppé <yvescoppe at skynet.be> wrote:
> >put the defaultFolder into the oldDefaultFolder --
> if you require this (see
> >note 1 below)
> >answer folder "WhichOne"
> >if (it is not empty) then
> >   set the defaultFolder to it
> >   if (the number of lines in the files = 0) then
> >     #empty folder
> >   else
> >     #non-empty folder
> >   end if
> >end if
> >
> >note 1:
> >storing the old defaultFolder at the beginning of
> your code allows you to
> >reset it at the end so the path that was there
> before is there again (other
> >code may be accessing it after your code and this
> allows you to be friendly
> >=)
> >
> >_______________________________________________
> 
> 
> 
> On mac OS X, I have an empty folder
> when I use your script above and take the detailed
> files in the result I get :
> 
> .DS_Store,6148,0,1025820432,1025820432,0,0,0,0,666,
> 
> So your script answer "non-empty folder" but in the
> folder, there is nothing !!
> 
> Another idea ?
> -- 
> Greetings.
> 
> Yves COPPE
> 
> Email : yvescoppe at skynet.be
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
>
http://lists.runrev.com/mailman/listinfo/use-revolution


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



More information about the use-livecode mailing list