> I've written the following to sweep a folder and set creator/type for 
> pdf
> files (coming off a Linux server).   This works from MacPerl, but I 
> really need
> to run it from OSX Perl. How do I get Perl to use MacPerl.pm, which 
> @INC can't
> locate? ( #!/usr/bin/perl   use MacPerl; ... ).

If you install MacPerl.pm in the "obvious" way, then it should be 
found.  Otherwise, if you install it in an alternate location, then you 
can do:

  use lib qw(/path/to/where/you/installed/it);
  use MacPerl;
Thanks for pointing me in the right direction. Interestingly, the problem I 
was trying to solve with MacPerl's SetFileInfo is still open. Once Perl set the 
creator/type, the file was still not fully recognized as belonging to that 
application (no icon, and not recognized by the Classic application).

It seems that the means for associating the creator/type with this 
application (Acrobat 5) is either through the Get Info ("Opens with...") window (this 
works in Jaguar), or by simply opening it first with the application (this works 
in Panther). So for the moment, I'm relying on AppleScript to tell the 
application to open the file to get it fully associated.

So my next question is: What is Acrobat doing when opening a file that 
SetFileInfo isn't?

-Alan

Reply via email to