defaultFolder . . .

Klaus Major klaus at major-k.de
Thu Mar 22 16:39:51 EDT 2007


Hi Richmond,

> So I pop the following into a button:
>
> on mouseUp
>   create folder "FUZZ"
>   set the defaultFolder to it
> end mouseUp
>
> and, when I subsequently export a txt file it does NOT
> end up inside "FUZZ"
>
> so try the following:
>
> on mouseUp
>   create folder "FUZZ"
>   set the defaultFolder to "/FUZZ"
> end mouseUp
>
> still no joy
>
> obviously I am going wrong somewhere!
>
> where?

I think that IT will only hold the name of created controls inside of  
Rev!
"create folder XXX" is another beast ;-)

Try:
on mouseUp
   create folder "FUZZ"
   ## since you did not specify an absolute path
   ## the folder will be created in the current directory

   set the folder to (the folder & "/FUZZ")
   ## less characters to type ;-)

   ## the folder = the directory = the defaultfolder
end mouseUp

> sincerely, Richmond Mathewson

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list