[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Toolbox] Moving files from:End



>>Is somebody here ?
>
>I'm guessing that the reasons you haven't gotten a reply are:
>1) Nobody knows the answer, because...
>2) This is not so much a MacPerl question but a Mac question, and probably
>   has more to do with Phantom than anything else.
>
>On behalf of the group, sorry.
>
>-David-
>
>p.s. Normally the way you would copy a data fork using MacPerl is not using
>FSpFileCopy or FSpDirectoryCopy or
>File::Copy.pm, but using standard perl file commands.  If it is a textfile,
>you could do:
>
>open(INFILE, "infilename") || die "Can't open infilename: $!\n";
>open(OUTFILE, "outfilename") || die "Can't open outfilename: $!\n";
>while(<INFILE>) {
>    print(OUTFILE $_:
>}
>close INFILE;
>close OUTFILE;
>exit 0;
>
>(This is just off the top of my head; I have not run this code.)
>
>For a non-text file, you would use the perl read command to read chunks of
>a fixed size and then print those.
>
>David Steffen, Ph.D.
>President, Biomedical Computing, Inc. <http://www.biomedcomp.com/>
>Phone: (713) 610-9770 FAX: (713) 610-9769 E-mail: steffen@biomedcomp.com

Ok,

It was not clear enought. it's right that is a very Mac problem, but MP did
give a good solution.

Some folder Res Fork were hidden with a little app name Phantom for some
registered users on that Mac who are sun bathing somewhere.

So, i did have to recover the content of folders which were hidden on the
finder without any Res fork.

I was unable to recover the Res fork with either ResEdit nor AppleScript,
who can't "catch" the folder.

I just supposed that moving file would be easy with MP. When doing that
first operation i didn't have MP, and i mail the first question.

Back to the problem i write a script, about ten lignes (i did trash it, no
floppy:-(, to move the content of the hidden folder to a new folder. And it
was succesfull immediately.
It's very pleasant to see how MP did easily manage that :-)  But probably
not for the Phantom creator))

It just give me the stuff for a new question :

- is it possible with MP to manage Res Fork using Apple Events ?

MJM

######################################################
                               mailto://mjm@aix.pacwan.net

                                       Jean-Michel MEYER
                                  Journaliste - Photographe

                  "Pourquoi les chameaux ne sourient jamais ?"

Perlish :-)


http://www.azur-press.com  mailto://mjm@azur-press.com
######################################################



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org