Re: MacPerl INC question

2004-02-05 Thread AWLeverenz
In a message dated 2/5/04 12:37:24 AM, [EMAIL PROTECTED] writes: > > > So my next question is: What is Acrobat doing when opening a file that > > SetFileInfo isn't? > > Setting the correct file type?  :^) > > According to your previous message, you're doing this: > >     MacPerl::SetFileInfo(

Re: MacPerl INC question

2004-02-05 Thread John Delacour
At 10:48 pm -0500 4/2/04, [EMAIL PROTECTED] wrote: Interestingly, the problem I was trying to solve with MacPerl's SetFileInfo is still open. Once Perl set the creator/type... At 6:23 pm -0500 3/2/04, [EMAIL PROTECTED] wrote: MacPerl::SetFileInfo('CARO', 'PDF', $path); Is that precisely what you

Re: MacPerl INC question

2004-02-04 Thread John Gruber
[EMAIL PROTECTED] wrote on 2/4/04 at 10:48p: > So my next question is: What is Acrobat doing when opening a file that > SetFileInfo isn't? Setting the correct file type? :^) According to your previous message, you're doing this: MacPerl::SetFileInfo('CARO', 'PDF', $path); HFS file and cr

Re: MacPerl INC question

2004-02-04 Thread AWLeverenz
> 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; ... ).

Re: MacPerl INC question

2004-02-04 Thread Ken Williams
On Tuesday, February 3, 2004, at 05:23 PM, [EMAIL PROTECTED] wrote: 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

Re: MacPerl INC question

2004-02-04 Thread Sherm Pendley
On Feb 3, 2004, at 6:23 PM, [EMAIL PROTECTED] wrote: I've written the following to sweep a folder and set creator/type for pdf files (coming off a Linux server). Standard caveat: Creator/type has been deprecated for Mac OS X, so you really shouldn't need to do this unless these files either lack

Re: MacPerl INC question

2004-02-04 Thread Chris Nandor
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > #!perl > > use strict; > use warnings; > > my ($folder,$x,$file,$path); > my @files; > > $folder = ":pdf:"; This won't work in Mac OS X. You must use Unix paths. > opendir(PDF, "$folder") || die "$!"; > @files = readdir(PDF); > close

MacPerl INC question

2004-02-03 Thread AWLeverenz
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; ... ). #!perl use s