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

Re: [MacPerl] mac file busy?



John Gilmore-Baldwin writes:
|# Can't call method "ioFRefNum" without a package or object reference.
|File 'Untitled'; Line 7
|
|#!perl
|use Mac::Files;
|
|$file ="full:path:to:file";
|$cat = FSpGetCatInfo($file);
|
|$busy = $cat->ioFRefNum;

It works fine here, under 5.2.0r4. Have you checked that FSpGetCatInfo is
succeeding? I suspect it's failing, leaving $cat undefined. Check for
those errors!

Brian

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch