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

Re: [MacPerl] FindFolder?



At 12.42 10/17/97, Randy Bradley wrote:
>        I would like to store a few template files in the
>system/preferences folder.  I thought the FindFolder() function would be
>the best way to get the path to it, but I don't seem to have the external
>library in my package?  Here is the error message I get when I try to run
>the FindFolder.t program.
>
># MacPerl::LoadExternals("FindFolder.pl"): File not found..
>File 'usr:MacPerl Ä:lib:FindFolder.pl'; Line 3
>
>It seems strange to me that the external has the same name as the library?
>Is this usual?

Try instead:

#!perl -wl
use Mac::Files;
print FindFolder kOnSystemDisk, kSystemFolderType;
print FindFolder kOnSystemDisk, kPreferencesFolderType;


>On a related note, Can I ask StandardFile to show the files in a specific
>directory?  It seems to go to the last user selected directory.

I think I remember hearing that was broken.  I'd have to guess that no, you can't.

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



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