preserving resource forks under Windows
Jan Schenkel
janschenkel at yahoo.com
Mon Apr 26 14:38:46 EDT 2004
--- Chris Sheffield <revlist at cableone.net> wrote:
> Does anyone know of a way to do this?
>
> I have an installation program built in Rev. In one
> step of the
> installation, I'm copying certain files to a server,
> including client setup
> programs to be run at each network workstation (one
> for Windows, one for Mac
> OS X, and one for Mac OS 9). The Windows and OS X
> client setup programs
> work fine, but the OS 9 one does not if I run my
> server installation on a
> Windows machine (obviously because the resource
> forks are not getting
> preserved). So is there a way to do this from Rev?
> I notice that if I copy
> a file directly from my Mac to my Windows machine
> using the Finder, the
> resource fork is placed in a file named something
> like "._myfile", which
> seems to work okay. Any ideas on how I can make
> this work using revCopyFile
> or similar.
>
> Thanks,
>
> Chris Sheffield
>
Hi Chris,
Your best bet is to save the files as .sit files using
DropStuff, and let the end-user unpack them on his/her
own machine.
Even if you roll your own installer and save the
resource fork into a custom property :
--
set the uDataFork of btn "Foobar" to \
URL ("binfile:" & tFilePath)
set the uRsrcFork of btn "Foobar" to \
URL ("resfile:" & tFilePath)
--
put the uDataFork of btn "Foobar" into \
URL ("binfile:" & tFilePath)
put the uRsrcFork of btn "Foobar" into \
URL ("resfile:" & tFilePath)
--
This won't do the trick if your user has to run an
installer app that is cut in half by WIndows, heh.
Hope this helped,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25
http://photos.yahoo.com/ph/print_splash
More information about the use-livecode
mailing list