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

Re: [MacPerl] Finding files on disk



At 13.55 -0400 1999.06.10, Troy_Davis wrote:
>This should do it, Robert.
>
>Best,
>Troy
>
>
>__BEGIN__
>#!perl -w
>require "FindFolder.pl";
>use MacPerl;
>
># &MacPerl'FindFolder($foldertype [, $create])
>#
># Where $type is one of:
>#
># A[pple menu]

>print "Prefs folder is " . MacPerl::FindFolder(P) . "\n";
>

Mac::Files has the New and Improved version.

    use Mac::Files;
    $sf = FindFolder(kOnSystemDisk, typeSystemFolder);

But this only works with a handful (well, in Mac OS 8, a big handful) of
cases for a generic "find file x", whatever "x" is.

If Sherlock had better scripting capabilities, you could use it to do
searching, too.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

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