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

Re: [MacPerl] Identifying Applications



> Currently I'm using the '-B' and '-X' file tests  to find files that are
> both Binary and Exec-able, but this also returns a lot of files which are
> non apps, making my next logical step to start filtering by checking the
> creator codes of the files thrown up to back track to their owner apps.
> 
> Is there a Mac specific way to do the same thing through toolbox calls?

$type = MacPerl::GetFileInfo($pathname);
($creator, $type) = MacPerl::GetFileInfo($pathname);

-- 
 Kevin Reid: |    Macintosh:      
  "I'm me."  | Think different.

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