> I have this problem with the FileXtra... (on MAC)
> On a CDRom, when a user click on a specific button, I want to 
> copy a folder 
> from the cd into the hard disk of the user.
> At first, I taught about having a window with the option for 
> the user to be 
> able to browse where he wants to install it...but I just 
> couldn't find the 
> way to make it work...
> Then, I tried with the FileXtra and I found the example to 
> copy a folder, 
> but the script doesn't seems to work... there it is:
> 
> on mousedown
> fxObj = xtra("FileXtra3").new()
> put fxObj.fx_FolderCopy("@: MyFolder", "Macintosh HD: 
> Applications", True)
> end

Some potential problems: in your handler you have "put
fxObj.fx_FolderCopy(etc...)" which would be writing an integer into your
message window. However, you mention a CD-ROM, so I'll assume you've created
a projector and so don't have a message window you can examine(unless you've
used the projector.ini technique to provide a message window a run-time...)

Another potential problem is that the name of the folder to copy into is
hard-coded. Can you be sure that _all_ your end users have a HD called
"Macintosh HD"?? Try renaming your own (primary) Mac HD this way and run
your program from your CD. It may work now.

The safest thing to do is present your end-user with a dialog asking where
to put the files you need to copy. Use FileXtra3's "fx_FolderSelectDialog"
to pop-up a dialog window and use the path returned in your folder copy
routine.

Best of luck,
Sean.

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to