At 06:20 AM 11/2/2006, you wrote:

> I am making my own bootstrap program whose only purpose is to start
> up, copy an internal file from within it (in the Resources internal
> folder) to the computer's Temporary folder, launch it, and then
> quit to get out of the way.
>
> The purpose is because this will run on a CD, and since it's a
> multi-CD set, the install-type app that runs must not run from the
> CD, since at some point the CD has to be removed (and the Mac will
> not let you remove it if the program is running).
>
> This works on Tiger, but on Panther it doesn't work. It fails on
> the CopyFileTo method, where when I check the LastErrorCode for the
> source FolderItem it says "File Not Found" even after I checked the
> Exist property (which was True).
>
> Perhaps RB in Panther doesn't let you copy packages (which is of
> course what he app is)?
>
> Any other ideas, or perhaps there is a better way to copy a file
> from the bootstrap app to the hard drive?

Have you checked if both the original file and destination folder's
exists properties are true? Sometimes we check the exists property of
the source file while the problem comes from the destination folder.

Yes, they both Exist.

Also, I always thought MoveFileTo didn't work to move a non empty
folder (only a file or an empty folder, like the Delete and
CopyFileTo methods). I wonder if that means you can't do this in
Panther while you may do it in Tiger. If that's the problem, then you
have to copy every item (starting with folders and then with files).

The real question is what the RB CopyFileTo method is really capable of. Apparently the internal calls that RB makes are Tiger-dependent for that type of operation. So perhaps there's another way to do it, perhaps with a Finder call with a AppleEvent/Script? I don't know how to do this.

Garth Hjelte
Sampler User


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to